Skip to content

Commit 1086468

Browse files
committed
Improve TriggerLoader::load_module error
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
1 parent a01c40f commit 1086468

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/trigger/src/loader.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl Loader for TriggerLoader {
4747
.context("LockedComponentSource missing source field")?;
4848
let path = unwrap_file_uri(source)?;
4949
spin_core::Module::from_file(engine, path)
50+
.with_context(|| format!("loading module {path:?}"))
5051
}
5152

5253
async fn mount_files(

0 commit comments

Comments
 (0)