diff --git a/src/js/angular/core/directives/queryeditor/query-editor.directive.js b/src/js/angular/core/directives/queryeditor/query-editor.directive.js index 234ac41a5..80f28f240 100644 --- a/src/js/angular/core/directives/queryeditor/query-editor.directive.js +++ b/src/js/angular/core/directives/queryeditor/query-editor.directive.js @@ -616,7 +616,11 @@ function queryEditorDirective($timeout, $location, toastr, $repositories, Sparql // data is received as blob res.data.text() .then((message) => { - toastr.error(message, $translate.instant('common.error')); + if (res.status === 431) { + toastr.error(res.statusText, $translate.instant('common.error')); + } else { + toastr.error(message, $translate.instant('common.error')); + } }); }); } else {