mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: rename error-code to flowy-error-code in case of ambiguous
This commit is contained in:
@ -7,7 +7,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
|
||||
error-code = { path = "../../../shared-lib/error-code"}
|
||||
flowy-error-code = { path = "../../../shared-lib/flowy-error-code"}
|
||||
lib-dispatch = { path = "../lib-dispatch" }
|
||||
protobuf = {version = "2.20.0"}
|
||||
bytes = "1.0"
|
||||
@ -27,7 +27,7 @@ ot = ["lib-ot"]
|
||||
serde = ["serde_json"]
|
||||
http_server = ["http-flowy"]
|
||||
db = ["flowy-database", "lib-sqlite", "r2d2"]
|
||||
dart = ["error-code/dart", "lib-infra/dart"]
|
||||
dart = ["flowy-error-code/dart", "lib-infra/dart"]
|
||||
|
||||
[build-dependencies]
|
||||
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["pb_gen"] }
|
@ -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};
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user