Display error message on /d/ error

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

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) {