@tiledesk/tiledesk-server 2.14.5 → 2.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/routes/kb.js +4 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/routes/kb.js
CHANGED
|
@@ -811,10 +811,12 @@ router.get('/namespace/export/:id', async (req, res) => {
|
|
|
811
811
|
|
|
812
812
|
let namespace;
|
|
813
813
|
try {
|
|
814
|
-
namespace = await aiManager.checkNamespace(
|
|
814
|
+
namespace = await aiManager.checkNamespace(id_project, namespace_id);
|
|
815
815
|
} catch (err) {
|
|
816
|
+
winston.error("Error checking namespace: ", err);
|
|
816
817
|
let errorCode = err?.errorCode ?? 500;
|
|
817
|
-
|
|
818
|
+
let errorMessage = err?.error || "Error checking namespace";
|
|
819
|
+
return res.status(errorCode).send({ success: false, error: errorMessage });
|
|
818
820
|
}
|
|
819
821
|
|
|
820
822
|
let name = namespace.name;
|