Fix userFriendlyMessage not showing for fieldMetadata (#13369)
This commit is contained in:
@ -136,6 +136,9 @@ export class FieldMetadataValidationService {
|
|||||||
throw new FieldMetadataException(
|
throw new FieldMetadataException(
|
||||||
error.message,
|
error.message,
|
||||||
FieldMetadataExceptionCode.INVALID_FIELD_INPUT,
|
FieldMetadataExceptionCode.INVALID_FIELD_INPUT,
|
||||||
|
{
|
||||||
|
userFriendlyMessage: error.userFriendlyMessage,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -59,6 +59,9 @@ export const validateFieldNameAvailabilityOrThrow = (
|
|||||||
throw new InvalidMetadataException(
|
throw new InvalidMetadataException(
|
||||||
`Name "${name}" is not available`,
|
`Name "${name}" is not available`,
|
||||||
InvalidMetadataExceptionCode.RESERVED_KEYWORD,
|
InvalidMetadataExceptionCode.RESERVED_KEYWORD,
|
||||||
|
{
|
||||||
|
userFriendlyMessage: t`This name is not available.`,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user