Skip to content

Commit

Permalink
Indent comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 14, 2019
1 parent 3025165 commit b5802a6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export const execCommand = async function(input, opts) {

try {
return await execa(input, opts)
// Build a Gulp error, so it prints better.
// By passing `error`, we make sure `execa` `error` properties are kept.
// All error properties are summarized in the error message, i.e. we don't
// need to print them.
// There are ways `execa()` can throw:
// - invalid parameters, where core Node.js will throw a plain error.
// - anything else (exit code !== 0, process killed, timeout, runtime error,
// stream error) will throw an execa-specific richer error.
// Build a Gulp error, so it prints better.
// By passing `error`, we make sure `execa` `error` properties are kept.
// All error properties are summarized in the error message, i.e. we don't
// need to print them.
// There are ways `execa()` can throw:
// - invalid parameters, where core Node.js will throw a plain error.
// - anything else (exit code !== 0, process killed, timeout, runtime error,
// stream error) will throw an execa-specific richer error.
} catch (error) {
throw new PluginError('gulp-execa', error, { showProperties: false })
}
Expand Down

0 comments on commit b5802a6

Please sign in to comment.