From 6b8be86f89e1d9b63f43032470dff14cf87e9dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Tue, 12 Sep 2017 15:12:33 +0200 Subject: [PATCH] Docs: Simplified the error message. --- src/toolbar/toolbarview.js | 5 ++--- tests/toolbar/toolbarview.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/toolbar/toolbarview.js b/src/toolbar/toolbarview.js index 861d0422..961376ae 100644 --- a/src/toolbar/toolbarview.js +++ b/src/toolbar/toolbarview.js @@ -134,7 +134,7 @@ export default class ToolbarView extends View { } else { /** * There was a problem processing the configuration of the toolbar. The item with the given - * name does not exist and it was omitted when adding toolbar items in DOM. + * name does not exist so it was omitted when rendering the toolbar. * * This warning usually shows up when the {@link module:core/plugin~Plugin} which is supposed * to provide a toolbar item has not been loaded or there is a typo in the configuration. @@ -144,11 +144,10 @@ export default class ToolbarView extends View { * * @error toolbarview-item-unavailable * @param {String} name The name of the component. - * @param {module:ui/componentfactory~ComponentFactory} factory The factory that is missing the component. */ log.warn( 'toolbarview-item-unavailable: The requested toolbar item is unavailable.', - { name, factory } + { name } ); } } ); diff --git a/tests/toolbar/toolbarview.js b/tests/toolbar/toolbarview.js index 868db6f6..6226fc2b 100644 --- a/tests/toolbar/toolbarview.js +++ b/tests/toolbar/toolbarview.js @@ -265,7 +265,7 @@ describe( 'ToolbarView', () => { sinon.assert.calledOnce( log.warn ); sinon.assert.calledWithExactly( log.warn, sinon.match( /^toolbarview-item-unavailable/ ), - { name: 'baz', factory } + { name: 'baz' } ); } ); } );