Skip to content

Commit

Permalink
Refs facebookarchive#188, Add catch block for syntax error in config …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
jeffreyleeon committed Nov 27, 2016
1 parent 0996fd8 commit cff225e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ async function work(body) {
headers: {
Accept: 'application/vnd.github.v3.raw+json'
}
}).catch(function(e) {
if (e instanceof SyntaxError) {
// Syntax error while reading custom configuration file

}
});

repoConfig = {...repoConfig, ...configRes};
Expand Down

0 comments on commit cff225e

Please sign in to comment.