mxd 3 лет назад
Родитель
Сommit
e11076343a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      magic-editor/src/console/src/scripts/parsing/tokenizer.js

+ 1 - 1
magic-editor/src/console/src/scripts/parsing/tokenizer.js

@@ -84,7 +84,7 @@ const tokenizerString = (stream, tokenType, tokens) => {
             }
             let ch = stream.consume();
             if (tokenType !== TokenType.TripleQuote && (ch === '\r' || ch === '\n')) {
-                throw new ParseException(tokenType.getError() + tokenType.getError() + "定义的字符串不能换行", stream.endSpan());
+                throw new ParseException(tokenType.error + tokenType.error + "定义的字符串不能换行", stream.endSpan());
             }
         }
         if (!matchedEndQuote) {