package jalview.ws2.client.ebi;
import java.io.BufferedReader;
+import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
@Override
public String getErrorLog(WebServiceJobHandle job) throws IOException
{
- return "";
+ if (getStatus(job) != JobStatus.FAILED)
+ return "";
+ try(InputStream stream = client.getResultStream(job.getJobId(), "error"))
+ {
+ ByteArrayOutputStream out = new ByteArrayOutputStream();
+ stream.transferTo(out);
+ return out.toString();
+ }
}
@Override