Fixes the referenced property name

This commit is contained in:
Eric Amodio
2020-10-12 04:55:02 -04:00
parent 78db6d0154
commit c283338f37

View File

@@ -2743,7 +2743,7 @@ export class FileDecoration {
static validate(d: FileDecoration): void {
if (d.badge && d.badge.length !== 1) {
throw new Error(`The 'letter'-property must be undefined or a single character`);
throw new Error(`The 'badge'-property must be undefined or a single character`);
}
if (!d.color && !d.badge && !d.tooltip) {
throw new Error(`The decoration is empty`);