mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Correct reject block to include details about error
This commit is contained in:
@@ -244,8 +244,9 @@ function _requestMaker(user, method, additionalSets) {
|
||||
if (!err.response) return reject(err);
|
||||
|
||||
return reject({
|
||||
code: err.response.status,
|
||||
text: err.response.body.err,
|
||||
code: err.status,
|
||||
error: err.response.body.error,
|
||||
message: err.response.body.message,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user