Skip to content

Commit

Permalink
fix: show error in console browser when conversions of parameter valu…
Browse files Browse the repository at this point in the history
…es fail
  • Loading branch information
csm-thu committed Sep 18, 2023
1 parent f285d0a commit 08ff30f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/ApiUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ const formatParameterMinMaxDefaultValuesFromString = (parameter) => {
try {
if (parameter[keyToCast] != null) parameter[keyToCast] = castFunction(parameter[keyToCast]);
} catch (error) {
console.error(error);
console.log(
`Error when trying to cast "${keyToCast}" of parameter with id "${parameter?.id}": its value is` +
`Error when trying to cast "${keyToCast}" of parameter with id "${parameter?.id}": its value is ` +
`${parameter[keyToCast]}`
);
}
Expand Down

0 comments on commit 08ff30f

Please sign in to comment.