Skip to content

Commit

Permalink
Update src/cmd/src/error.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ruihang Xia <[email protected]>
  • Loading branch information
fengjiachun and waynexia authored Sep 3, 2024
1 parent c74bb0a commit 57cd2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ impl ErrorExt for Error {
}
Error::MetaClientInit { source, .. } => source.status_code(),
Error::TonicTransport { .. } => StatusCode::Internal,
Error::SchemaNotFound { .. } => StatusCode::Unexpected,
Error::SchemaNotFound { .. } => StatusCode::DatabaseNotFound,
}
}

Expand Down

0 comments on commit 57cd2bf

Please sign in to comment.