Fix no output from errors

This commit is contained in:
Webber 2020-05-21 20:05:06 +02:00 committed by Webber Takken
parent ce865270c4
commit 7386c669ad

View File

@ -29,14 +29,14 @@ class System {
core.info(result);
}
if (exitCode !== 0) {
throw new Error(error);
}
if (error !== '') {
core.warning(error);
}
if (exitCode !== 0) {
throw new Error(error);
}
return result;
}
}