diff --git a/src/api/v3/keyoxide_profile.js b/src/api/v3/keyoxide_profile.js index ec08e0f..32bfabe 100644 --- a/src/api/v3/keyoxide_profile.js +++ b/src/api/v3/keyoxide_profile.js @@ -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(', ')}`) } }