浏览代码

Internal: Changed `console.error` to `console.warn`.

Maciej Bukowski 6 年之前
父节点
当前提交
cbccc9f550
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      packages/ckeditor5-engine/src/model/operation/transform.js

+ 8 - 8
packages/ckeditor5-engine/src/model/operation/transform.js

@@ -101,14 +101,14 @@ export function transform( a, b, context = {} ) {
 
 		return transformationFunction( a, b, context );
 	} catch ( e ) {
-		// @if CK_DEBUG // console.error( 'Error during operation transformation!', e.message );
-		// @if CK_DEBUG // console.error( 'Transformed operation', a );
-		// @if CK_DEBUG // console.error( 'Operation transformed by', b );
-		// @if CK_DEBUG // console.error( 'context.aIsStrong', context.aIsStrong );
-		// @if CK_DEBUG // console.error( 'context.aWasUndone', context.aWasUndone );
-		// @if CK_DEBUG // console.error( 'context.bWasUndone', context.bWasUndone );
-		// @if CK_DEBUG // console.error( 'context.abRelation', context.abRelation );
-		// @if CK_DEBUG // console.error( 'context.baRelation', context.baRelation );
+		// @if CK_DEBUG // console.warn( 'Error during operation transformation!', e.message );
+		// @if CK_DEBUG // console.warn( 'Transformed operation', a );
+		// @if CK_DEBUG // console.warn( 'Operation transformed by', b );
+		// @if CK_DEBUG // console.warn( 'context.aIsStrong', context.aIsStrong );
+		// @if CK_DEBUG // console.warn( 'context.aWasUndone', context.aWasUndone );
+		// @if CK_DEBUG // console.warn( 'context.bWasUndone', context.bWasUndone );
+		// @if CK_DEBUG // console.warn( 'context.abRelation', context.abRelation );
+		// @if CK_DEBUG // console.warn( 'context.baRelation', context.baRelation );
 
 		throw e;
 	}