瀏覽代碼

Used `err.message` instead of `err.stack`.

Maciej Bukowski 7 年之前
父節點
當前提交
6276b5abb4

+ 2 - 2
packages/ckeditor5-cloud-services/tests/manual/token.js

@@ -27,8 +27,8 @@ ClassicEditor
 		window.editor = editor;
 	} )
 	.catch( err => {
-		output.innerText = err.stack;
-		console.error( err.stack );
+		output.innerText = err.message;
+		console.error( err.message );
 	} );
 
 function handleRequest( xhr, resolve, reject ) {

+ 1 - 1
packages/ckeditor5-cloud-services/tests/manual/token.md

@@ -19,4 +19,4 @@
 **Expected result**
 * Editor isn't initialized at the start of the scenario.
 * The token is different than the previous token.
-* After clicking the button the editor doesn't initialize and there is an error in the output - `Error: Cannot download new token!`.
+* After clicking the button the editor doesn't initialize and there is an error in the output - `Cannot download new token!`.