I don't get it

This commit is contained in:
Dragon Fire
2024-03-24 00:29:32 -04:00
parent 9af988203c
commit 522ec7232c
+1
View File
@@ -28,6 +28,7 @@ module.exports = class ArgumentUnionType extends ArgumentType {
for (let i = 0; i < results.length; i++) {
if (results[i] && typeof results[i] !== 'string') return this.types[i].parse(val, msg, arg);
}
console.log(results[i], typeof results[i]);
throw new Error(`Couldn't parse value "${val}" with union type ${this.id}.`);
}