chore: cleanup

This commit is contained in:
Igor Randjelovic
2020-12-07 15:01:17 +01:00
parent 2f39cf5ed6
commit d21776079f
15 changed files with 132 additions and 112 deletions

View File

@ -15,7 +15,9 @@ export function error(...data: any): Error {
// we return the error - the caller can throw or ignore
if (typeof data[0] === 'string') {
return new Error(data[0]);
return new Error(
'\n\n[@nativescript/webpack]\n---\n\n' + dedent(data[0]) + '\n\n---\n'
);
}
return new Error('@nativescript/webpack ran into a problem...');