diff --git a/framework/default/ortoo-core/default/lwc/confirmationDialog/confirmationDialog.js b/framework/default/ortoo-core/default/lwc/confirmationDialog/confirmationDialog.js index 4ae57cb8fec..d7007326da3 100644 --- a/framework/default/ortoo-core/default/lwc/confirmationDialog/confirmationDialog.js +++ b/framework/default/ortoo-core/default/lwc/confirmationDialog/confirmationDialog.js @@ -35,7 +35,11 @@ export default class ConfirmationDialog extends LightningElement { }; set type( value ) { if ( ! type.hasOwnProperty( value ) ) { - throw 'Invalid type specified, should be one of ' + type; + let typeList = []; + for ( let thisType in type ) { + typeList.push( type[ thisType ] ); + } + throw 'Invalid type specified, should be one of ' + typeList.join( ', ' ); } this._type = value; }