mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user