1
0
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:
vichansson 2024-03-25 13:17:15 +02:00 committed by GitHub
parent d9af851aa0
commit 9f633e7601
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()
}