Skip to content

Commit

Permalink
fix: err
Browse files Browse the repository at this point in the history
  • Loading branch information
brodeynewman committed Mar 14, 2023
1 parent 529f0a3 commit 1d7a3fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ function upsertDeployment(config) {
if (e instanceof upsertDeploymentFetcher.Error) {
const { data } = e.getActualType();
if ("issues" in data) {
throw new Error(`Error creating deployment: ${data.message}. Issues: ${JSON.stringify(data.issues)}`);
throw new Error(`Error upserting deployment: ${data.message}. Issues: ${JSON.stringify(data.issues)}`);
}
throw new Error(`Error creating deployment: ${data.message}.`);
throw new Error(`Error upserting deployment: ${data.message}.`);
}
}
});
Expand Down
4 changes: 2 additions & 2 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export async function upsertDeployment(config: Config) {
const { data } = e.getActualType()

if ("issues" in data) {
throw new Error(`Error creating deployment: ${data.message}. Issues: ${JSON.stringify(data.issues)}`)
throw new Error(`Error upserting deployment: ${data.message}. Issues: ${JSON.stringify(data.issues)}`)
}

throw new Error(`Error creating deployment: ${data.message}.`)
throw new Error(`Error upserting deployment: ${data.message}.`)
}
}
}
Expand Down

0 comments on commit 1d7a3fb

Please sign in to comment.