Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 9, 2019
1 parent f193bb3 commit a7d3e7b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ const execCommand = async function(input, opts) {
// (maybe removes anything after first newline?)
const getError = function({ error }) {
// By passing `error`, we make sure `execa` `error` properties are kept.
return new PluginError('gulp-execa', error, {
// All error properties are summarized in the error message, i.e. we don't
// need to print them.
showProperties: false,
})
// All error properties are summarized in the error message, i.e. we don't
// need to print them.
return new PluginError('gulp-execa', error, { showProperties: false })
}

0 comments on commit a7d3e7b

Please sign in to comment.