mirror of
https://github.com/denoland/deno.git
synced 2024-12-31 11:34:15 -05:00
fix: panic during deno compile
with no args (#9167)
This commit is contained in:
parent
0ef8c915c0
commit
4c223d0521
2 changed files with 2 additions and 1 deletions
|
@ -890,7 +890,7 @@ fn compile_subcommand<'a, 'b>() -> App<'a, 'b> {
|
||||||
runtime_args(SubCommand::with_name("compile"), true, false)
|
runtime_args(SubCommand::with_name("compile"), true, false)
|
||||||
.setting(AppSettings::TrailingVarArg)
|
.setting(AppSettings::TrailingVarArg)
|
||||||
.arg(
|
.arg(
|
||||||
script_arg(),
|
script_arg().required(true),
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("output")
|
Arg::with_name("output")
|
||||||
|
|
|
@ -1248,6 +1248,7 @@ fn unwrap_or_exit<T>(result: Result<T, AnyError>) -> T {
|
||||||
let msg = format!(
|
let msg = format!(
|
||||||
"{}: {}",
|
"{}: {}",
|
||||||
colors::red_bold("error"),
|
colors::red_bold("error"),
|
||||||
|
// TODO(lucacasonato): print anyhow error chain here
|
||||||
error.to_string().trim()
|
error.to_string().trim()
|
||||||
);
|
);
|
||||||
eprintln!("{}", msg);
|
eprintln!("{}", msg);
|
||||||
|
|
Loading…
Reference in a new issue