Skip to content

Commit

Permalink
Tighten an error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjeffburke committed Mar 7, 2020
1 parent c0e0508 commit de3503b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Impro.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = class Impro {
if (operations) {
if (!Array.isArray(operations)) {
throw new Error(
'Pipeline creation can only be supplied an operations array or string'
'Pipeline creation can only be supplied an operations array'
);
}

Expand Down
2 changes: 1 addition & 1 deletion test/impro.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe('impro', function() {
impro.createPipeline({}, {});
},
'to throw',
'Pipeline creation can only be supplied an operations array or string'
'Pipeline creation can only be supplied an operations array'
);
});

Expand Down

0 comments on commit de3503b

Please sign in to comment.