Skip to content

Commit 7af0c0c

Browse files
committed
factors: Fix startup with missing state_dir
Signed-off-by: Lann Martin <[email protected]>
1 parent 18bb944 commit 7af0c0c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

crates/runtime-config/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ impl<'a> TomlResolver<'a> {
173173
// Prefer explicitly provided state directory, then take from toml.
174174
self.state_dir
175175
.or_else(from_toml)
176-
.map(PathBuf::from)
177-
.map(std::fs::canonicalize)
176+
.map(std::path::absolute)
178177
.transpose()
179178
}
180179

src/bin/spin.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ async fn _main() -> anyhow::Result<()> {
7373
}
7474
}
7575

76-
SpinApp::from_arg_matches(&matches)?.run(cmd).await
76+
SpinApp::from_arg_matches(&matches)?
77+
.run(cmd)
78+
.await
79+
.inspect_err(|err| tracing::debug!(?err))
7780
}
7881

7982
fn print_error_chain(err: anyhow::Error) {

0 commit comments

Comments
 (0)