/**
* Format a vector of sequences as a flat alignment file.
+ * TODO: allow caller to detect errors and warnings encountered when generating output
+ *
*
* @param format
* Format string as givien in the AppletFormatAdaptor list
*/
afile.setSeqs(seqs);
-
- return afile.print();
+ String afileresp = afile.print();
+ if (afile.hasWarningMessage())
+ {
+ System.err.println("Warning raised when writing as "+format+" : "+afile.getWarningMessage());
+ }
+ return afileresp;
} catch (Exception e)
{
System.err.println("Failed to write alignment as a '" + format