summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 0fa63a138..2b958ff55 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -386,11 +386,11 @@ async fn info_command(
let info = graph.info()?;
if json {
- write_json_to_stdout(&json!(info))?;
+ write_json_to_stdout(&json!(info))
} else {
- write_to_stdout_ignore_sigpipe(info.to_string().as_bytes())?;
+ write_to_stdout_ignore_sigpipe(info.to_string().as_bytes())
+ .map_err(|err| err.into())
}
- Ok(())
} else {
// If it was just "deno info" print location of caches and exit
print_cache_info(&program_state, json)