mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Require message field too
This commit is contained in:
3
lib/upload-lib.js
generated
3
lib/upload-lib.js
generated
@@ -88340,6 +88340,9 @@ var ConfigurationError = class extends Error {
|
||||
}
|
||||
};
|
||||
function asHTTPError(arg) {
|
||||
if (typeof arg !== "object" || arg === null || typeof arg.message !== "string") {
|
||||
return void 0;
|
||||
}
|
||||
if (Number.isInteger(arg.status)) {
|
||||
return new HTTPError(arg.message, arg.status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user