From 2dea7f971b1762005c31cf984ec5477e2feb321c Mon Sep 17 00:00:00 2001 From: jmstout Date: Sun, 1 Jun 2014 13:01:50 -0400 Subject: [PATCH] docs: add missing 'new' operator for thrown error --- docs/writing-a-plugin/dealing-with-streams.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing-a-plugin/dealing-with-streams.md b/docs/writing-a-plugin/dealing-with-streams.md index 1cd0dd047..5529cf918 100644 --- a/docs/writing-a-plugin/dealing-with-streams.md +++ b/docs/writing-a-plugin/dealing-with-streams.md @@ -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