Skip to content

Commit 8888cff

Browse files
committed
Fix error wording
Reported by @kentcdodds CC @ianks.
1 parent f4c4176 commit 8888cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function getOrder(a, b) {
102102

103103
function ExtractTextPlugin(options) {
104104
if(arguments.length > 1) {
105-
throw new Error("Deprecation notice: ExtractTextPlugin now only takes a single argument. Either an options " +
105+
throw new Error("Breaking change: ExtractTextPlugin now only takes a single argument. Either an options " +
106106
"object *or* the name of the result file.\n" +
107107
"Example: if your old code looked like this:\n" +
108108
" new ExtractTextPlugin('css/[name].css', { disable: false, allChunks: true })\n\n" +
@@ -165,7 +165,7 @@ ExtractTextPlugin.prototype.loader = function(options) {
165165

166166
ExtractTextPlugin.prototype.extract = function(options) {
167167
if(arguments.length > 1) {
168-
throw new Error("Deprecation notice: extract now only takes a single argument. Either an options " +
168+
throw new Error("Breaking change: extract now only takes a single argument. Either an options " +
169169
"object *or* the loader(s).\n" +
170170
"Example: if your old code looked like this:\n" +
171171
" ExtractTextPlugin.extract('style-loader', 'css-loader')\n\n" +

0 commit comments

Comments
 (0)