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

Commit c9788ee

Browse files
committed
refactor(transpile): add error message
1 parent 0e22fee commit c9788ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transpile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function transpileWorker(context: BuildContext, workerConfig: TranspileWo
122122
// darn, we've got some things wrong, transpile failed :(
123123
printDiagnostics(context, DiagnosticsType.TypeScript, diagnostics, true, true);
124124

125-
reject(new BuildError());
125+
reject(new BuildError('Failed to transpile program'));
126126

127127
} else {
128128
// transpile success :)
@@ -359,7 +359,7 @@ export function getTsConfig(context: BuildContext, tsConfigPath?: string): TsCon
359359

360360
if (diagnostics.length) {
361361
printDiagnostics(context, DiagnosticsType.TypeScript, diagnostics, true, true);
362-
throw new BuildError();
362+
throw new BuildError(`tsconfig: invalid config, "${tsConfigPath}""`);
363363
}
364364

365365
config = {

0 commit comments

Comments
 (0)