Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#625: show rest endpoint for RestErrors #626

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,12 @@ function startLogger() {
if (message) {
// ! this method only sets exitCode=1 if message-param was set
// if not, then this method purely outputs debug information and should not change the exitCode
winstonError(message + ': ' + ex.message);
winstonError(message + ':');
winstonError(' ' + ex.message);
if (ex.endpoint) {
// ex.endpoint is only available if 'ex' is of type RestError
winstonError(' endpoint: ' + ex.endpoint);
}
Util.signalFatalError();
}
let stack;
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"prettier": "2.8.3",
"prettier-plugin-sql": "0.12.1",
"semver": "7.3.8",
"sfmc-sdk": "0.6.1",
"sfmc-sdk": "0.6.2",
"simple-git": "3.15.1",
"toposort": "2.0.2",
"update-notifier": "5.1.0",
Expand Down