|
|
@@ -420,7 +420,7 @@ class FileLoader {
|
|
|
*/
|
|
|
read() {
|
|
|
if ( this.status != 'idle' ) {
|
|
|
- throw new CKEditorError( 'filerepository-read-wrong-status: You cannot call read if the status is different than idle.' );
|
|
|
+ throw new CKEditorError( 'filerepository-read-wrong-status: You cannot call read if the status is different than idle.', this );
|
|
|
}
|
|
|
|
|
|
this.status = 'reading';
|
|
|
@@ -465,7 +465,10 @@ class FileLoader {
|
|
|
*/
|
|
|
upload() {
|
|
|
if ( this.status != 'idle' ) {
|
|
|
- throw new CKEditorError( 'filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.' );
|
|
|
+ throw new CKEditorError(
|
|
|
+ 'filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.',
|
|
|
+ this
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
this.status = 'uploading';
|