0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 15:42:38 +00:00

adjust console log of valid errors.

This commit is contained in:
Gazook89
2022-11-20 12:00:35 -06:00
parent 0061040cb6
commit b3343e5981

View File

@@ -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();
};