- JvOptionPane.showMessageDialog(this, errorMsg.toString(),
- MessageManager.getString("label.pdb_web-service_error"),
- JvOptionPane.ERROR_MESSAGE);
+ if (!Jalview.isHeadlessMode())
+ {
+ JvOptionPane.showMessageDialog(this, errorMsg.toString(),
+ MessageManager.getString("label.pdb_web-service_error"),
+ JvOptionPane.ERROR_MESSAGE);
+ }
+ else
+ {
+ Console.error(
+ MessageManager.getString("label.pdb_web-service_error"));
+ Console.debug(errorMsg.toString());
+ }