Skip to content

Commit

Permalink
GDB-8043: reformat the message of error 431 when trying to download j…
Browse files Browse the repository at this point in the history
…son result of a very large query (#975)

Co-authored-by: Denitsa Stoyanova <denitsa.stoyanova@ontotext.com>
  • Loading branch information
Denitsa Stoyanova and Denitsa Stoyanova authored Jul 27, 2023
1 parent 7b239a2 commit a8e4447
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a8e4447

Please sign in to comment.