TagSpaces is an offline, open source, document manager with tagging support
refactoring promises
uggrock532737cf5d99
diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex c797c2f91..397e83ba8 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -746,12 +746,11 @@ define(function(require, exports, module) {TSCORE.IO.listDirectoryPromise(TSCORE.currentPath).then(function(entries) {TSPOSTIO.listDirectory(entries);- },- function(err) {- TSPOSTIO.errorOpeningPath();- console.warn("Error listing directory" + err);}- );+ ).catch(function(err) {+ TSPOSTIO.errorOpeningPath(TSCORE.currentPath);+ console.warn("Error listing directory" + err);+ });}function showSearchArea() {