Commit e62b5fc5 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: fix exception type

parent 32012012
......@@ -766,9 +766,11 @@ namespace ossimplugins
// Invert system
try {
dR = B.i() * F;
} catch (std::exception const& e) {
} catch (NEWMAT::SingularException const& e) {
// NEWMATH exception
throw std::runtime_error(e.what());
} catch (...) {
throw std::runtime_error("Cannot invert 3x3 matrix in projToSurface");
}
// Update estimate
......
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