Skip to content

Commit

Permalink
ISSUE -- body has unexpected token;; expand call to try to see it
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-git committed Nov 29, 2017
1 parent dff603e commit 4be1bce
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion services/Mailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,16 @@ class Mailer extends helper.Mail {
body: this.toJSON()
});

const response = await this.sgAPI.API(request);
let response = '';

console.log('--> request', request);

try {
response = await this.sgAPI.API(request);
} catch (e) {
console.log('--> error', e);
}

return response;

}
Expand Down

1 comment on commit 4be1bce

@rohan-git
Copy link
Owner Author

Choose a reason for hiding this comment

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

Link to associated issue: #11

(wish Github could automate these somehow ....)

Please sign in to comment.