Skip to content

Commit a3885e5

Browse files
author
Paul van Brenk
committed
Don't double wrap exceptions.
1 parent b647760 commit a3885e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@ module ts {
287287
export function readConfigFile(fileName: string): { config?: any; error?: Diagnostic } {
288288
try {
289289
var text = sys.readFile(fileName);
290-
return parseConfigFileText(fileName, text);
291290
}
292291
catch (e) {
293292
return { error: createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message) };
294293
}
294+
return parseConfigFileText(fileName, text);
295295
}
296296

297297
/**

0 commit comments

Comments
 (0)