Skip to content

Commit

Permalink
docs: add missing 'new' operator for thrown error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmstout committed Jun 1, 2014
1 parent 2763e1a commit 2dea7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/writing-a-plugin/dealing-with-streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function prefixStream(prefixText) {
function gulpPrefixer(prefixText) {

if (!prefixText) {
throw PluginError(PLUGIN_NAME, "Missing prefix text!");
throw new PluginError(PLUGIN_NAME, "Missing prefix text!");
}
prefixText = new Buffer(prefixText); // allocate ahead of time

Expand Down

0 comments on commit 2dea7f9

Please # to comment.