Display error message on /d/ error

This commit is contained in:
simon 2020-01-16 15:04:50 -05:00
parent 919f45c79c
commit 487e998ea0
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,10 @@ $.jsonPost("i").then(resp => {
});
function getDocumentInfo(id) {
return $.getJSON("d/" + id)
return $.getJSON("d/" + id).fail(e => {
console.log(e);
showEsError();
})
}
function handleTreeClick(tree) {