mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 18:30:14 +00:00
Improve error categorizations
This commit is contained in:
+1
-1
@@ -187,7 +187,7 @@ export async function getRef(): Promise<string> {
|
||||
const hasShaInput = !!shaInput;
|
||||
// If one of 'ref' or 'sha' are provided, both are required
|
||||
if ((hasRefInput || hasShaInput) && !(hasRefInput && hasShaInput)) {
|
||||
throw new Error(
|
||||
throw new UserError(
|
||||
"Both 'ref' and 'sha' are required if one of them is provided.",
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user