diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-03-01 22:49:58 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 22:49:58 +1100 |
commit | 6dae6277497c0b083f25ead2ab020482dcd5c45f (patch) | |
tree | 277ea88704a6476d8f2848adecb29f6cc47afef5 /cli/main.rs | |
parent | 0dc89c0a793fa80b4c3ef89128fc674ec62b72a3 (diff) |
feat(cli): represent type dependencies in info (#9630)
Fixes #7927
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 6 |
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) |