mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 14:26:54 +00:00
adjust console log of valid errors.
This commit is contained in:
1 parent
0061040cb6
commit
b3343e5981
1 file changed
+1
-1
@@ -69,10 +69,10 @@ const MetadataEditor = createClass({
|
||||
});
|
||||
} else {
|
||||
// if validation issues, display built-in browser error popup with each error.
|
||||
console.log(validationErr);
|
||||
const errMessage = validationErr.map((err)=>{
|
||||
return `- ${err}`;
|
||||
}).join('\n');
|
||||
console.log(`Input error ${errMessage}`);
|
||||
e.target.setCustomValidity(errMessage);
|
||||
e.target.reportValidity();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user