8
0
Pārlūkot izejas kodu

Added missing error context.

Maciej Bukowski 6 gadi atpakaļ
vecāks
revīzija
c64f8bac19

+ 1 - 1
packages/ckeditor5-widget/src/widgettoolbarrepository.js

@@ -126,7 +126,7 @@ export default class WidgetToolbarRepository extends Plugin {
 			 * @error widget-toolbar-duplicated
 			 * @param toolbarId Toolbar id.
 			 */
-			throw new CKEditorError( 'widget-toolbar-duplicated: Toolbar with the given id was already added.', { toolbarId } );
+			throw new CKEditorError( 'widget-toolbar-duplicated: Toolbar with the given id was already added.', this, { toolbarId } );
 		}
 
 		toolbarView.fillFromConfig( items, editor.ui.componentFactory );