mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Apply suggestions from code review
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
committed by
GitHub
parent
88810420b1
commit
094a2b0c46
@@ -409,7 +409,7 @@ public class TypeScriptParser {
|
||||
exitCode = parserWrapperProcess.waitFor();
|
||||
}
|
||||
if (exitCode != null && (exitCode == NODEJS_EXIT_CODE_FATAL_ERROR || exitCode == NODEJS_EXIT_CODE_SIG_ABORT)) {
|
||||
// this is caught in the auto-builder, and handled as an OOM. Check there is the message is changed.
|
||||
// this is caught in the auto-builder, and handled as an OOM. Check there if the message is changed.
|
||||
return new TypeScriptWrapperOOMError("The TypeScript parser wrapper crashed, possibly from running out of memory.", e);
|
||||
}
|
||||
if (exitCode != null) {
|
||||
|
||||
@@ -4,6 +4,6 @@ import com.semmle.util.exception.ResourceError;
|
||||
|
||||
public class TypeScriptWrapperOOMError extends ResourceError {
|
||||
public TypeScriptWrapperOOMError(String message, Throwable throwable) {
|
||||
super(message,throwable);
|
||||
}
|
||||
super(message,throwable);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user