mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
I don't get it
This commit is contained in:
@@ -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}.`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user