From 7124e6f14be1ebbc27dd8cecdab47f803a9af74d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 13 Feb 2008 04:47:08 +0000 Subject: Oh, why the hell not? I just added the line/col readout to all the TafReader exceptions. --- src/tafreader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tafreader.cpp b/src/tafreader.cpp index 29796f1..7b5e65d 100644 --- a/src/tafreader.cpp +++ b/src/tafreader.cpp @@ -28,7 +28,7 @@ Bu::TafGroup *Bu::TafReader::readGroup() { ws(); if( c != '{' ) - throw TafException("Expected '{'"); + throw TafException("Expected '{' at %d:%d.", iLine, iCol ); next(); ws(); FString sName = readStr(); @@ -39,7 +39,7 @@ Bu::TafGroup *Bu::TafReader::readGroup() groupContent( pGroup ); if( c != '}' ) - throw TafException("Expected '}'"); + throw TafException("Expected '}' at %d:%d.", iLine, iCol ); //next(); @@ -147,7 +147,7 @@ Bu::FString Bu::TafReader::readStr() else if( c == '"' ) c = '"'; else - throw TafException("Invalid escape sequence."); + throw TafException("Invalid escape sequence at %d:%d.", iLine, iCol ); } else if( c == '"' ) break; -- cgit v1.2.3