Error handling
This commit is contained in:
@@ -112,7 +112,7 @@ var transfer = {
|
||||
res.send({
|
||||
status: "failure",
|
||||
message: "Invalid response",
|
||||
details: err.message,
|
||||
details: errorMessage,
|
||||
code: typeof err.response !== 'undefined' ? err.response.status : null,
|
||||
data: typeof err.response !== 'undefined' ? err.response.data : null
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user