mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -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)
|
||||
.setting(AppSettings::TrailingVarArg)
|
||||
.arg(
|
||||
script_arg(),
|
||||
script_arg().required(true),
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("output")
|
||||
|
|
|
@ -1248,6 +1248,7 @@ fn unwrap_or_exit<T>(result: Result<T, AnyError>) -> T {
|
|||
let msg = format!(
|
||||
"{}: {}",
|
||||
colors::red_bold("error"),
|
||||
// TODO(lucacasonato): print anyhow error chain here
|
||||
error.to_string().trim()
|
||||
);
|
||||
eprintln!("{}", msg);
|
||||
|
|
Loading…
Reference in a new issue