add preset name to couldn't find preset message

This commit is contained in:
Sebastian McKenzie 2015-10-31 20:52:46 +00:00
parent bfef4fa46a
commit a1dd25104a

View File

@ -230,7 +230,7 @@ export default class OptionManager {
let presetOpts = require(presetLoc);
this.mergeOptions(presetOpts, presetLoc, presetLoc, path.dirname(presetLoc));
} else {
throw new Error("Couldn't find preset");
throw new Error(`Couldn't find preset ${JSON.stringify(val)}`);
}
} else if (typeof val === "object") {
this.mergeOptions(val);