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

Commit

Permalink
Even better API docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Mar 1, 2017
1 parent e0923a4 commit 4a0e70f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugincollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.<String>} 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 } );
Expand Down

0 comments on commit 4a0e70f

Please sign in to comment.