Skip to content

Commit a01c40f

Browse files
committed
Improve error reporting in spin_app::Error
The `:#` formatting modifier causes anyhow::Error to print the full list of causes / contexts. Signed-off-by: Lann Martin <lann.martin@fermyon.com>
1 parent e64d7bf commit a01c40f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/app/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ pub type Result<T> = std::result::Result<T, Error>;
263263

264264
#[derive(Debug, thiserror::Error)]
265265
pub enum Error {
266-
#[error("spin core error: {0}")]
266+
#[error("spin core error: {0:#}")]
267267
CoreError(anyhow::Error),
268-
#[error("host component error: {0}")]
268+
#[error("host component error: {0:#}")]
269269
HostComponentError(anyhow::Error),
270-
#[error("loader error: {0}")]
270+
#[error("loader error: {0:#}")]
271271
LoaderError(anyhow::Error),
272272
#[error("manifest error: {0}")]
273273
ManifestError(String),

0 commit comments

Comments
 (0)