From 4a0e70f82f98aec5e7266582c80c7f9172dfcaea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Wed, 1 Mar 2017 19:32:19 +0100 Subject: [PATCH] Even better API docs. --- src/plugincollection.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugincollection.js b/src/plugincollection.js index 51dda50b..b549272a 100644 --- a/src/plugincollection.js +++ b/src/plugincollection.js @@ -102,16 +102,16 @@ export default class PluginCollection { // TODO update this error docs with links to docs because it will be a frequent problem. /** - * The plugins cannot be found. + * Some plugins are not available and could not be loaded. * - * Plugin classes need to be provided to the editor before they can be loaded by name. + * Plugin classes (constructors) need to be provided to the editor before they can be loaded by name. * This is usually done by the builder by setting the {@link module:core/editor/editor~Editor.build} * property. * * @error plugincollection-plugin-not-found * @param {Array.} plugins The name of the plugins which could not be loaded. */ - const errorMsg = 'plugincollection-plugin-not-found: The plugin(s) cannot be loaded by name.'; + const errorMsg = 'plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.'; // Log the error so it's more visible on the console. Hopefuly, for better DX. log.error( errorMsg, { plugins: missingPlugins } );