diff options
author | Marius Kintel <marius@kintel.net> | 2011-09-08 03:14:52 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-09-08 03:14:52 (GMT) |
commit | 0188ed74fae0eb4479b9131002304b440e1010e9 (patch) | |
tree | ff53fd8eecc889cd170bbf8313e463345ac07c9d /src | |
parent | 512e7bb1bead9cf76c5f17fdda3b83a6e162fb4c (diff) |
Removed duplicate error message on parser error
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwin.cc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index c937279..c4925d5 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -730,18 +730,7 @@ fail: if (parser_error_pos < 0) { PRINT("ERROR: Compilation failed! (no top level object found)"); } else { - int line = 1; - QByteArray pb = this->last_compiled_doc.toAscii(); - char *p = pb.data(); - for (int i = 0; i < parser_error_pos; i++) { - if (p[i] == '\n') - line++; - if (p[i] == 0) { - line = -1; - break; - } - } - PRINTF("ERROR: Compilation failed! (parser error in line %d)", line); + PRINT("ERROR: Compilation failed!"); } if (procevents) QApplication::processEvents(); |