refactor: rename error-code to flowy-error-code in case of ambiguous

This commit is contained in:
appflowy
2022-02-09 19:26:06 +08:00
parent 93863462a2
commit 5809758539
30 changed files with 224 additions and 68 deletions

View File

@ -1,6 +1,6 @@
use bytes::Bytes;
use error_code::ErrorCode;
use flowy_derive::ProtoBuf;
use flowy_error_code::ErrorCode;
use lib_dispatch::prelude::{EventResponse, ResponseBuilder};
use std::{convert::TryInto, fmt, fmt::Debug};

View File

@ -1,5 +1,5 @@
use crate::FlowyError;
use error_code::ErrorCode;
use flowy_error_code::ErrorCode;
use http_flowy::errors::{ErrorCode as ServerErrorCode, ServerError};
impl std::convert::From<ServerError> for FlowyError {

View File

@ -2,5 +2,5 @@ mod errors;
mod ext;
pub mod protobuf;
pub use error_code::ErrorCode;
pub use errors::*;
pub use flowy_error_code::ErrorCode;