Fixes #4 Improve error reporting

This commit is contained in:
Nick Cipollo
2019-12-12 14:30:08 -05:00
parent c4fce56188
commit dba5ad58d6
5 changed files with 220 additions and 1 deletions

View File

@@ -5,13 +5,15 @@ import { GithubReleases } from './Releases';
import { Action } from './Action';
import { GithubArtifactUploader } from './ArtifactUploader';
import { FileArtifactGlobber } from './ArtifactGlobber';
import { ErrorMessage } from './ErrorMessage';
async function run() {
try {
const action = createAction()
await action.perform()
} catch (error) {
core.setFailed(error.message);
const errorMessage = new ErrorMessage(error)
core.setFailed(errorMessage.toString());
}
}