Commit 27a0125c authored by Costin Grigoras's avatar Costin Grigoras
Browse files

Another type of error messages to parse

parent 79c4a975
......@@ -268,6 +268,17 @@ public class Xrootd extends Protocol {
return message.substring(idx + 5, idx2);
}
idx = message.lastIndexOf("Server responded with an error: ");
if (idx >= 0) {
int idx2 = message.indexOf('\n', idx);
if (idx2 < 0)
idx2 = message.length();
return message.substring(idx + 32, idx2);
}
return null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment