diff options
author | Satya Rohith <me@satyarohith.com> | 2021-05-04 17:57:20 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 14:27:20 +0200 |
commit | 89b61b5d05b7441d42e4e88fe1180d9d3dc1727e (patch) | |
tree | 43afe9cca75060e7f5cece65317e7ad6c4217328 /cli/program_state.rs | |
parent | 17118c41e4bf0cd8d9b78f72349c685d383b7291 (diff) |
fix(cli): give context when failed to load import map (#10478)
Diffstat (limited to 'cli/program_state.rs')
-rw-r--r-- | cli/program_state.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/program_state.rs b/cli/program_state.rs index de6331b89..e8d2c163e 100644 --- a/cli/program_state.rs +++ b/cli/program_state.rs @@ -101,7 +101,11 @@ impl ProgramState { )?; let file = file_fetcher .fetch(&import_map_specifier, &mut Permissions::allow_all()) - .await?; + .await + .context(format!( + "Unable to load '{}' import map", + import_map_specifier + ))?; let import_map = ImportMap::from_json(import_map_specifier.as_str(), &file.source)?; Some(import_map) |