Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 1832907

Browse files
committed
refactor(aot): provided an error message
1 parent 6a53a81 commit 1832907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aot/aot-compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function transpileFiles(context: BuildContext, tsConfig: ParsedTsConfig, fileSys
143143
if (diagnostics.length) {
144144
// darn, we've got some things wrong, transpile failed :(
145145
printDiagnostics(context, DiagnosticsType.TypeScript, diagnostics, true, true);
146-
throw new BuildError();
146+
throw new BuildError(new Error('Failed to transpile TypeScript'));
147147
}
148148

149149
const jsFilePath = changeExtension(tsFile.path, '.js');

0 commit comments

Comments
 (0)