mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Fix
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = class Argument {
|
||||
} else if (this.max !== null && this.min === null && this.typeID === 'string') {
|
||||
return `It must be at most ${this.max} characters long.`;
|
||||
} else if (this.type instanceof UnionType) {
|
||||
return `It must be a ${list(this.type.types, 'or')}.`;
|
||||
return `It must be a ${list(this.type.types.map(type => type.typeID), 'or')}.`;
|
||||
}
|
||||
return `It must be a ${this.typeID}.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user