mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-02 09:31:36 +00:00
fix: fix error handling (#841)
This commit is contained in:
1 parent
1977c44664
commit
32e33dcd3a
1 file changed
+1
-1
+1
-1
@@ -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