fixed #83
This commit is contained in:
parent
c64ab570a1
commit
7aa3dfc2a9
@ -100,7 +100,7 @@ public class GenericModuleImpl implements ModuleInterface {
|
||||
Object valueObject = method.invoke(anEntity);
|
||||
if (valueObject instanceof String) {
|
||||
if (!Pattern.matches(fieldValidation.value(), (String) valueObject)) {
|
||||
throw new HSAdminException("validation of field " + f.getName() + " failed");
|
||||
throw new HSAdminException("validation of field " + f.getName() + " failed, pattern: " + fieldValidation.value());
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user