mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: 040 bugs (#4285)
* test: add tests * chore: set maximum log files * fix: import row document * chore: bump client api * chore: fix analyzer * chore: fix flutter unit test
This commit is contained in:
@ -55,6 +55,10 @@ impl FlowyError {
|
||||
self.code == ErrorCode::RecordNotFound
|
||||
}
|
||||
|
||||
pub fn is_already_exists(&self) -> bool {
|
||||
self.code == ErrorCode::RecordAlreadyExists
|
||||
}
|
||||
|
||||
pub fn is_unauthorized(&self) -> bool {
|
||||
self.code == ErrorCode::UserUnauthorized || self.code == ErrorCode::RecordNotFound
|
||||
}
|
||||
|
Reference in New Issue
Block a user