Better error message for invalid plugin/preset (#7238)
- Error for invalid plugin/preset now includes file path
This commit is contained in:
parent
d283324f8a
commit
84de90e572
@ -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}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user