mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-14 22:29:17 +08:00
fix: fix error handling (#841)
This commit is contained in:
parent
1977c44664
commit
32e33dcd3a
@ -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');
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user