mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
chore: cleanup
This commit is contained in:
@ -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...');
|
||||
|
Reference in New Issue
Block a user