Skip to content

Commit

Permalink
chore: add http status information in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lenkan committed Jan 25, 2024
1 parent 67dacd6 commit 78d8fb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/keri/app/clienting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ export class SignifyClient {
});
if (!res.ok) {
const error = await res.text();
throw new Error(error);
const message = `HTTP ${method} ${path} - ${res.status} ${res.statusText} - ${error}`;
throw new Error(message);
}
const isSameAgent =
this.agent?.pre === res.headers.get('signify-resource');
Expand Down

0 comments on commit 78d8fb0

Please sign in to comment.