0
Fork 0
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:
Daniel Lockyer 2020-12-01 23:16:47 +00:00
parent d675278b0b
commit 947603d0e3
No known key found for this signature in database
GPG key ID: FFBC6FA2A6F6ABC1

View file

@ -204,6 +204,7 @@ async function handleUnsubscribeRequest(req) {
return memberModel.toJSON();
} catch (err) {
throw new errors.InternalServerError({
err,
message: 'Failed to unsubscribe member'
});
}