Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Code style improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2ciek committed Sep 18, 2018
1 parent 055b196 commit a6dd351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widgettoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class WidgetToolbar extends Plugin {
*
* @error widget-toolbar-duplicated
*/
throw new Error( 'widget-toolbar-duplicated: Toolbar with the given id was already added.', { toolbarId } )
throw new Error( 'widget-toolbar-duplicated: Toolbar with the given id was already added.', { toolbarId } );
}

this._toolbars.set( toolbarId, {
Expand All @@ -136,7 +136,7 @@ export default class WidgetToolbar extends Plugin {
*
* @error widget-toolbar-does-not-exist
*/
throw new Error( 'widget-toolbar-does-not-exist' );
throw new Error( 'widget-toolbar-does-not-exist', { toolbarId } );
}

this._hideToolbar( toolbar );
Expand Down

0 comments on commit a6dd351

Please sign in to comment.