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