diff --git a/framework/UnionType.js b/framework/UnionType.js index 523b6dda..33d9ec7f 100644 --- a/framework/UnionType.js +++ b/framework/UnionType.js @@ -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}.`); }