mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-01-26 03:34:03 +00:00
add better error reporting for failed slack invites
This commit is contained in:
@@ -29,7 +29,8 @@ module.exports = function (app) {
|
||||
}
|
||||
|
||||
if(!response.body.ok) {
|
||||
return next(new Error('Creating slack invitation failed'));
|
||||
var err = new Error('Creating slack invitation failed:', response.body.error);
|
||||
return next(err);
|
||||
}
|
||||
|
||||
res.status(200).end();
|
||||
|
||||
Reference in New Issue
Block a user