Skip to content

Commit

Permalink
bug: resource provisioning errors not showing (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Oct 27, 2023
1 parent 0d777cd commit 04ded73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime/src/alpha/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ where
Ok(res) => match res {
Ok(service) => service,
Err(error) => {
println!("loading service failed: {error}");
println!("loading service failed: {error:#}");

let message = LoadResponse {
success: false,
Expand Down Expand Up @@ -283,7 +283,7 @@ where
};
return Ok(Response::new(message));
} else {
println!("loading service crashed: {error}");
println!("loading service crashed: {error:#}");
let message = LoadResponse {
success: false,
message: error.to_string(),
Expand Down
2 changes: 1 addition & 1 deletion service/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub enum Error {
BindPanic(String),
#[error("Failed to interpolate string. Is your Secrets.toml correct?")]
StringInterpolation(#[from] strfmt::FmtError),
#[error("Custom error: {0}")]
#[error(transparent)]
Custom(#[from] CustomError),
}

Expand Down

0 comments on commit 04ded73

Please sign in to comment.