From 571eecd836aef31df9749ff2a5ebe855665b039d Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Thu, 24 Jul 2014 18:44:07 +0200 Subject: [PATCH] setError use in scanPlain. --- source/dyaml/scanner.d | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/dyaml/scanner.d b/source/dyaml/scanner.d index 04473de..c34690c 100644 --- a/source/dyaml/scanner.d +++ b/source/dyaml/scanner.d @@ -1480,11 +1480,10 @@ final class Scanner spacesTransaction.commit(); reader_.sliceBuilder.finish(); reader_.forward(length); - errorData_ = ErrorData("While scanning a plain scalar", startMark, - "found unexpected ':' . Please check " - "http://pyyaml.org/wiki/YAMLColonInFlowContext " - "for details.", reader_.mark); - error_ = true; + setError("While scanning a plain scalar", startMark, + "found unexpected ':' . Please check " + "http://pyyaml.org/wiki/YAMLColonInFlowContext " + "for details.", reader_.mark); return Token.init; }