diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-02-13 04:47:08 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-02-13 04:47:08 +0000 |
commit | 7124e6f14be1ebbc27dd8cecdab47f803a9af74d (patch) | |
tree | 12ba655d63dc643d6633a3824361bad9451f3ccb | |
parent | 33be82a7789abdb8b9f6842a69c4c8f3b4ae830b (diff) | |
download | libbu++-7124e6f14be1ebbc27dd8cecdab47f803a9af74d.tar.gz libbu++-7124e6f14be1ebbc27dd8cecdab47f803a9af74d.tar.bz2 libbu++-7124e6f14be1ebbc27dd8cecdab47f803a9af74d.tar.xz libbu++-7124e6f14be1ebbc27dd8cecdab47f803a9af74d.zip |
Oh, why the hell not? I just added the line/col readout to all the TafReader
exceptions.
-rw-r--r-- | src/tafreader.cpp | 6 |
1 files 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() | |||
28 | { | 28 | { |
29 | ws(); | 29 | ws(); |
30 | if( c != '{' ) | 30 | if( c != '{' ) |
31 | throw TafException("Expected '{'"); | 31 | throw TafException("Expected '{' at %d:%d.", iLine, iCol ); |
32 | next(); | 32 | next(); |
33 | ws(); | 33 | ws(); |
34 | FString sName = readStr(); | 34 | FString sName = readStr(); |
@@ -39,7 +39,7 @@ Bu::TafGroup *Bu::TafReader::readGroup() | |||
39 | groupContent( pGroup ); | 39 | groupContent( pGroup ); |
40 | 40 | ||
41 | if( c != '}' ) | 41 | if( c != '}' ) |
42 | throw TafException("Expected '}'"); | 42 | throw TafException("Expected '}' at %d:%d.", iLine, iCol ); |
43 | 43 | ||
44 | //next(); | 44 | //next(); |
45 | 45 | ||
@@ -147,7 +147,7 @@ Bu::FString Bu::TafReader::readStr() | |||
147 | else if( c == '"' ) | 147 | else if( c == '"' ) |
148 | c = '"'; | 148 | c = '"'; |
149 | else | 149 | else |
150 | throw TafException("Invalid escape sequence."); | 150 | throw TafException("Invalid escape sequence at %d:%d.", iLine, iCol ); |
151 | } | 151 | } |
152 | else if( c == '"' ) | 152 | else if( c == '"' ) |
153 | break; | 153 | break; |