setError use in scanPlain.
This commit is contained in:
parent
1969dc0e97
commit
571eecd836
|
@ -1480,11 +1480,10 @@ final class Scanner
|
|||
spacesTransaction.commit();
|
||||
reader_.sliceBuilder.finish();
|
||||
reader_.forward(length);
|
||||
errorData_ = ErrorData("While scanning a plain scalar", startMark,
|
||||
setError("While scanning a plain scalar", startMark,
|
||||
"found unexpected ':' . Please check "
|
||||
"http://pyyaml.org/wiki/YAMLColonInFlowContext "
|
||||
"for details.", reader_.mark);
|
||||
error_ = true;
|
||||
return Token.init;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue