Disambiguate report messages
This commit is contained in:
parent
795b1923ec
commit
8a9922df92
3 changed files with 7 additions and 7 deletions
6
lib/actions-util.js
generated
6
lib/actions-util.js
generated
|
|
@ -270,14 +270,14 @@ async function validateWorkflow() {
|
|||
if (workflowErrors.length > 0) {
|
||||
core.warning(formatWorkflowErrors(workflowErrors));
|
||||
}
|
||||
return formatWorkflowCause(workflowErrors);
|
||||
return `warning: ${formatWorkflowCause(workflowErrors)}`;
|
||||
}
|
||||
catch (e) {
|
||||
return `getWorkflowErrors() failed: ${e.toString()}`;
|
||||
return `error: getWorkflowErrors() failed: ${e.toString()}`;
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
return `getWorkflow() failed: ${e.toString()}`;
|
||||
return `error: getWorkflow() failed: ${e.toString()}`;
|
||||
}
|
||||
}
|
||||
exports.validateWorkflow = validateWorkflow;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -327,12 +327,12 @@ export async function validateWorkflow(): Promise<undefined | string> {
|
|||
core.warning(formatWorkflowErrors(workflowErrors));
|
||||
}
|
||||
|
||||
return formatWorkflowCause(workflowErrors);
|
||||
return `warning: ${formatWorkflowCause(workflowErrors)}`;
|
||||
} catch (e) {
|
||||
return `getWorkflowErrors() failed: ${e.toString()}`;
|
||||
return `error: getWorkflowErrors() failed: ${e.toString()}`;
|
||||
}
|
||||
} catch (e) {
|
||||
return `getWorkflow() failed: ${e.toString()}`;
|
||||
return `error: getWorkflow() failed: ${e.toString()}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue