fix: fix error handling (#841)
This commit is contained in:
@@ -8,7 +8,7 @@ import * as main from './main';
|
||||
if (error instanceof Error) {
|
||||
core.setFailed(`Action failed with "${error.message}"`);
|
||||
} else {
|
||||
throw new Error('unexpected error');
|
||||
core.setFailed('unexpected error');
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user