Commit 3cecba79 authored by Manuel Grizonnet's avatar Manuel Grizonnet

WRG: catch correct exception variable

parent ada7ca7f
......@@ -79,8 +79,8 @@ int main(int argc, char * argv[])
}
catch(itk::ExceptionObject & err2)
{
std::cerr<<"Failed to open object as vector: "<<err<<std::endl;
std::cerr<<"Could not open file "<<argv[i]<<" as an image or a vector, skipping."<<std::endl;
std::cerr << "Failed to open object as vector: " << err2 << std::endl;
std::cerr << "Could not open file " << argv[i] << " as an image or a vector, skipping." << std::endl;
}
}
}
......
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