mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
fix: improve error message
This commit is contained in:
parent
3681b9f86a
commit
324d3fd562
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ const doVerification = async (profile) => {
|
|||
const validate = (profile) => {
|
||||
const valid = apiProfileValidate(profile)
|
||||
if (!valid) {
|
||||
throw new Error(`Profile data validation error: ${apiProfileValidate.errors.map(x => x.message).join(', ')}`)
|
||||
throw new Error(`API data validation error: ${apiProfileValidate.errors.map(x => `${x.instancePath} ${x.message}`).join(', ')}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue