Skip to content

Commit

Permalink
core.Base: beforeSetEnumValue() => in case of an error, make the type…
Browse files Browse the repository at this point in the history
… of each value better readable #5399
  • Loading branch information
tobiu committed Apr 20, 2024
1 parent c5ca5d2 commit 805f9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class Base {
let values = Array.isArray(staticName) ? staticName : this.getStaticConfig(staticName);

if (!values.includes(value)) {
console.error(`Supported values for ${name} are: ${values.join(', ')}`, this);
console.error(`Supported values for ${name} are:`, ...values, this);
return oldValue
}

Expand Down

0 comments on commit 805f9bc

Please sign in to comment.