chore: check workspace id before write to disk (#5197)

* chore: check workspace id before write to disk

* chore: update logs

* chore: update logs

* chore: update ci

* chore: bump client api
This commit is contained in:
Nathan.fooo
2024-04-24 14:38:47 +08:00
committed by GitHub
parent d21d095f0b
commit 6ecbf971b2
25 changed files with 204 additions and 142 deletions

View File

@ -277,6 +277,9 @@ pub enum ErrorCode {
#[error("FolderIndexManager or its dependencies are unavailable")]
FolderIndexManagerUnavailable = 96,
#[error("Workspace data not match")]
WorkspaceDataNotMatch = 97,
}
impl ErrorCode {

View File

@ -117,6 +117,7 @@ impl FlowyError {
folder_index_manager_unavailable,
ErrorCode::FolderIndexManagerUnavailable
);
static_flowy_error!(workspace_data_not_match, ErrorCode::WorkspaceDataNotMatch);
}
impl std::convert::From<ErrorCode> for FlowyError {