|
|
@@ -28,9 +28,15 @@ CKEDITOR.define( function() {
|
|
|
* @param {String} message The error message in an `error-name: Error message.` format.
|
|
|
* During the minification process the "Error message" part will be removed to limit the code size
|
|
|
* and a link to this error documentation will be added to the `message`.
|
|
|
- * @param {Object} [data] Additional data describing the error.
|
|
|
+ * @param {Object} [data] Additional data describing the error. A stringified version of this object
|
|
|
+ * will be appended to the error {@link #message}, so the data are quickly visible in the console. The original
|
|
|
+ * data object will also be later available under the {@link #data} property.
|
|
|
*/
|
|
|
constructor( message, data ) {
|
|
|
+ if ( data ) {
|
|
|
+ message += ' ' + JSON.stringify( data );
|
|
|
+ }
|
|
|
+
|
|
|
super( message );
|
|
|
|
|
|
this.name = 'CKEditorError';
|