handle case that package doesn't load

This commit is contained in:
AJ ONeal 2017-06-02 01:47:41 +00:00
parent 82b6e9d449
commit 9badd6515c
1 changed files with 2 additions and 1 deletions

View File

@ -554,7 +554,7 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
}); });
// TODO cache permission (although the FS is already cached, NBD) // TODO cache permission (although the FS is already cached, NBD)
return isThisClientAllowedToUseThisPkg(xconfx, clientUrih, pkgId).then(function (yes) { var promise = isThisClientAllowedToUseThisPkg(xconfx, clientUrih, pkgId).then(function (yes) {
if (!yes) { if (!yes) {
notConfigured(req, res); notConfigured(req, res);
return null; return null;
@ -585,6 +585,7 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
}); });
} }
}); });
rejectableRequest(req, res, promise, "[com.daplie.walnut] load api package");
}); });
}; };
}; };