Commit bc625f56 authored by claes's avatar claes

Antlr exeption wasn't catched correctly

parent 03982315
/* /*
* Proview $Id: wb_vrepwbl.cpp,v 1.48 2005-12-23 08:51:57 claes Exp $ * Proview $Id: wb_vrepwbl.cpp,v 1.49 2006-03-28 15:03:16 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1370,11 +1370,18 @@ int wb_vrepwbl::load_files( const char *file_spec) ...@@ -1370,11 +1370,18 @@ int wb_vrepwbl::load_files( const char *file_spec)
} }
} }
catch(exception& e) { catch(exception& e) {
cerr << "exception: " << e.what() << " " << found_file << " line: " << cout << "exception: " << e.what() << " " << found_file << " line: " <<
file[file_cnt]->lexer->getLine() << endl; file[file_cnt]->lexer->getLine() << endl;
error_cnt++; error_cnt++;
return LDH__WBLPARSE; return LDH__WBLPARSE;
} }
catch(ANTLRException& e) {
cout << "E Wbl parse error: " << " " << found_file << " line: " <<
file[file_cnt]->lexer->getLine() << endl;
cout << "F Wbl terminated" << endl;
error_cnt++;
return LDH__WBLPARSE;
}
file_cnt++; file_cnt++;
sts = dcli_search_file( (char *)file_spec, found_file, DCLI_DIR_SEARCH_NEXT); sts = dcli_search_file( (char *)file_spec, found_file, DCLI_DIR_SEARCH_NEXT);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment