Skip to content

Commit

Permalink
Changes error message when porter returns bad answer
Browse files Browse the repository at this point in the history
  • Loading branch information
vzotova committed Aug 9, 2024
1 parent 78b9517 commit 346190d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/shared/src/porter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class PorterClient {
throw lastError;
}
throw new Error(
`Porter returns bad response: ${resp.status} - ${resp.data}`,
`Porter returned bad response: ${resp.status} - ${resp.data}`,
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/shared/test/porter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('PorterClient', () => {
mockGetUrsulas(ursulas);
let porterClient = new PorterClient([fakePorterUris[1]]);
expect(porterClient.getUrsulas(ursulas.length)).rejects.toThrowError(
Error(`Porter returns bad response: 400 - `),
Error(`Porter returned bad response: 400 - `),
);
porterClient = new PorterClient([fakePorterUris[1], fakePorterUris[0]]);
expect(porterClient.getUrsulas(ursulas.length)).rejects.toThrowError(
Expand Down

0 comments on commit 346190d

Please sign in to comment.