Error handling

This commit is contained in:
2023-10-01 07:49:59 +08:00
parent 13c9132a00
commit dea2940a0d
@@ -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
});