Skip to content

Commit

Permalink
fix: add response log when network errors occur
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed Nov 30, 2022
1 parent fd5d7bc commit 9c6fc08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nile/templates/runtime.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export class BaseAPI {
throw new ResponseError(response, message);
}

console.error(response);
throw new ResponseError(response, 'Response returned an error code');
}

Expand Down

2 comments on commit 9c6fc08

@vercel
Copy link

@vercel vercel bot commented on 9c6fc08 Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nile-js – ./

nile-js.vercel.app
nile-js-git-master-theniledev.vercel.app
nile-js-theniledev.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 9c6fc08 Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.