mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
ci: Improve categorisation of errors in the Test-Workflow (no-changelog) (#5772)
* Add warning messages for bad gateway and insufficient balance * Remove console.logs --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
This commit is contained in:
parent
1409f5d652
commit
5f6183a031
|
@ -144,12 +144,16 @@ export class ExecuteBatch extends BaseCommand {
|
||||||
'econnrefused',
|
'econnrefused',
|
||||||
'missing a required parameter',
|
'missing a required parameter',
|
||||||
'insufficient credit balance',
|
'insufficient credit balance',
|
||||||
|
'internal server error',
|
||||||
|
'503',
|
||||||
|
'502',
|
||||||
|
'504',
|
||||||
|
'insufficient balance',
|
||||||
'request timed out',
|
'request timed out',
|
||||||
'status code 401',
|
'status code 401',
|
||||||
];
|
];
|
||||||
|
|
||||||
errorMessage = errorMessage.toLowerCase();
|
errorMessage = errorMessage.toLowerCase();
|
||||||
|
|
||||||
for (let i = 0; i < warningStrings.length; i++) {
|
for (let i = 0; i < warningStrings.length; i++) {
|
||||||
if (errorMessage.includes(warningStrings[i])) {
|
if (errorMessage.includes(warningStrings[i])) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue