Skip to content

Commit

Permalink
fix(tasks): exec uses first argument for errors when executing node
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 8, 2021
1 parent 024aa44 commit ffbd42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/process/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function exec(
}

const cmd = file || fullArgs.filter((arg) => arg[0] !== '-')[0];
message += !cmd || cmd.includes(path.sep) ? '' : `: ${file}`;
message += !cmd || cmd.includes(path.sep) ? '' : `: ${cmd}`;

await run(log('trace', err), ctx);
throw Error(message);
Expand Down

0 comments on commit ffbd42c

Please sign in to comment.