Better error message for invalid plugin/preset (#7238)

- Error for invalid plugin/preset now includes file path
This commit is contained in:
Mike S 2018-02-22 21:30:01 -05:00 committed by Logan Smyth
parent d283324f8a
commit 84de90e572

View File

@ -226,7 +226,7 @@ function createDescriptor(
// config object, because it can be useful to define them in nested
// configuration contexts.
throw new Error(
"Plugin/Preset files are not allowed to export objects, only functions.",
`Plugin/Preset files are not allowed to export objects, only functions. In ${filepath}`,
);
}