mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-08 21:17:43 +03:00
B OpenNebula/one#6529: Fix error message handling for oneflow (#3004)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
This commit is contained in:
parent
d9af851aa0
commit
9f633e7601
@ -70,7 +70,7 @@ const error = (next = defaultEmptyFunction, res = {}, data = '') => {
|
||||
) {
|
||||
res.locals.httpCode = httpResponse(
|
||||
internalServerError,
|
||||
data && data.message
|
||||
data && (data?.response?.data ? data.response.data : data?.message)
|
||||
)
|
||||
next()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user