fix: fix error handling (#841)

This commit is contained in:
Shohei Ueda 2023-01-17 23:04:25 +09:00 committed by GitHub
parent 1977c44664
commit 32e33dcd3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
}
}
})();