in addons/addon-user-id-upgrade/packages/user-id-upgrade-post-deployment/lib/utils/table-error.js [81:97]
get message() {
const parts = [];
const hasRoot = !!this.root;
const hasComposite = hasRoot && this.root.compositeError;
const hasSuggestions = hasRoot && this.root.hasSuggestions;
parts.push(`Table '${this.tableName}'`);
if (!_.isEmpty(this.operation)) parts.push(`Action '${_.startCase(this.operation)}'`);
if (!_.isEmpty(this.parsedKey)) parts.push(`Key [${this.parsedKey}]`);
if (hasRoot && !hasComposite && !hasSuggestions) parts.push(`Error: ${this.root.message || 'Unknown error'}`);
if (hasRoot && !hasComposite && hasSuggestions)
parts.push(`Error: ${this.root.messageWithoutSuggestions || 'Unknown error'}`);
if (hasRoot && hasComposite) parts.push('One or more errors occurred');
return parts.join(' - ');
}