add preset name to couldn't find preset message
This commit is contained in:
parent
bfef4fa46a
commit
a1dd25104a
@ -230,7 +230,7 @@ export default class OptionManager {
|
|||||||
let presetOpts = require(presetLoc);
|
let presetOpts = require(presetLoc);
|
||||||
this.mergeOptions(presetOpts, presetLoc, presetLoc, path.dirname(presetLoc));
|
this.mergeOptions(presetOpts, presetLoc, presetLoc, path.dirname(presetLoc));
|
||||||
} else {
|
} else {
|
||||||
throw new Error("Couldn't find preset");
|
throw new Error(`Couldn't find preset ${JSON.stringify(val)}`);
|
||||||
}
|
}
|
||||||
} else if (typeof val === "object") {
|
} else if (typeof val === "object") {
|
||||||
this.mergeOptions(val);
|
this.mergeOptions(val);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user