mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added original error to thrown error in mega code
- the original error is not propagated up with the error we throw, so it can sometimes be difficult to see what's going on down the line
This commit is contained in:
parent
d675278b0b
commit
947603d0e3
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ async function handleUnsubscribeRequest(req) {
|
|||
return memberModel.toJSON();
|
||||
} catch (err) {
|
||||
throw new errors.InternalServerError({
|
||||
err,
|
||||
message: 'Failed to unsubscribe member'
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue