Console.debug(
"Opening '" + openFile + "' in new alignment frame");
FileLoader fileLoader = new FileLoader(!headless);
-
- af = fileLoader.LoadFileWaitTillLoaded(openFile, protocol,
- format);
+ boolean xception=false;
+ try {
+ af = fileLoader.LoadFileWaitTillLoaded(openFile, protocol,
+ format);
+ } catch (Throwable thr)
+ {
+ xception=true;
+ Console.error("Couldn't open '"+openFile+"' as "+format+" "+thr.getLocalizedMessage()+ " (Enable debug for full stack trace)");
+ Console.debug("Exception when opening '"+openFile+"'",thr);
+ }
+ finally
+ {
+ if (af==null && !xception)
+ {
+ Console.info("Ignoring '"+openFile+"' - no alignment data found.");
+ continue;
+ }
+ }
// colour alignment?
String colour = ArgParser.getFromSubValArgOrPref(avm, av,