show detail for rpc bad request
This commit is contained in:
parent
1bd0351f1b
commit
b100f13640
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,10 @@ export function getErrorFromResponse(response) {
|
||||||
return { message: rpcErrorMessage, validationErrors: response.data.errors };
|
return { message: rpcErrorMessage, validationErrors: response.data.errors };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (response.data.code === RPCError.BAD_REQUEST.code) {
|
||||||
|
return { message: rpcErrorMessage + (response.data.detail ? `: ${response.data.detail}` : "") };
|
||||||
|
}
|
||||||
|
|
||||||
return { message: rpcErrorMessage };
|
return { message: rpcErrorMessage };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue