Skip to content

Commit

Permalink
Merge pull request #157 from aleb/aleb.error-reason
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschlueter authored Jul 13, 2024
2 parents 13b46f9 + 65d7ec5 commit c3c92fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nightscout/apiv1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class Client implements NightscoutAPI

if (resp.status !== 200)
{
throw Error(`failed to post new entries: ${resp.statusText}`);
throw Error(`failed to post new entries: ${resp.statusText} ${resp.status}`);
}

return;
Expand Down

0 comments on commit c3c92fb

Please sign in to comment.