mirror of https://github.com/KLayout/klayout.git
Don't decorate 'break' exceptions in Gerber reader.
This commit is contained in:
parent
7d2bf2d969
commit
9f8b81eaf4
|
|
@ -165,6 +165,8 @@ GerberFileReader::read (tl::TextInputStream &stream, db::Layout &layout, db::Cel
|
|||
|
||||
try {
|
||||
do_read ();
|
||||
} catch (tl::BreakException &) {
|
||||
throw;
|
||||
} catch (tl::Exception &ex) {
|
||||
throw tl::Exception (ex.msg () + tl::to_string (QObject::tr (" in line ")) + tl::to_string (stream.line_number ()));
|
||||
}
|
||||
|
|
@ -1019,6 +1021,8 @@ GerberImporter::do_read (db::Layout &layout, db::cell_index_type cell_index)
|
|||
try {
|
||||
tl::log << "Reading PCB file '" << file->filename () << "' with format '" << file->format_string () << "'";
|
||||
reader->read (stream, layout, layout.cell (cell_index), targets);
|
||||
} catch (tl::BreakException &) {
|
||||
throw;
|
||||
} catch (tl::Exception &ex) {
|
||||
throw tl::Exception (ex.msg () + ", reading file " + file->filename ());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue