Skip to content
Snippets Groups Projects
Commit 80e67ba8 authored by Michael Leuschel's avatar Michael Leuschel
Browse files

try restrict size of query failed error dialogs

parent 59a8f985
No related branches found
No related tags found
No related merge requests found
Pipeline #127991 passed
......@@ -162,8 +162,12 @@ public class AnimatorImpl {
assert !(topnode instanceof ACallBackResult);
if (!(topnode instanceof AYesResult)) {
if (query.length() > 400) {
throw new ResultParserException("Prolog query failed - received " + topnode.getClass().getSimpleName() + " in response to query: " + query.substring(0, 400), null);
} else {
throw new ResultParserException("Prolog query failed - received " + topnode.getClass().getSimpleName() + " in response to query: " + query, null);
}
}
bindings = BindingGenerator.createBinding(PrologTermGenerator.toPrologTerm(topnode));
} catch (ResultParserException e) {
Logger.notifyUser(e.getMessage(), e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment