if (!reader) {
if (exit_on_error) { //default behavior for tools who don't handle the problem
clitkExceptionMacro("Error reading file " << filename << ", exiting immediately");
if (!reader) {
if (exit_on_error) { //default behavior for tools who don't handle the problem
clitkExceptionMacro("Error reading file " << filename << ", exiting immediately");