Skip to content
Permalink
Browse files
output response body when failed
  • Loading branch information
plainheart committed May 5, 2022
1 parent ef3e2ce commit 4f689afb2461cfa22c320fc5e7bf9e0ceda98d27
Showing 1 changed file with 1 addition and 0 deletions.
@@ -10,6 +10,7 @@ const WAKEUP_URL = 'https://apache-incubator-echarts-bot-1.glitch.me/probot';
}
});
if (body.indexOf('Welcome to') === -1) {
console.log('Response body:\n', body);
throw new Error('bot may not be working.');
}
console.log('・゚✧ bot is now working.');

0 comments on commit 4f689af

Please sign in to comment.