add logging on more api endpoints for exceptions

This commit is contained in:
timothycarambat 2024-05-16 12:56:19 -07:00
parent 381bdf0b61
commit 7c6c272051

View File

@ -533,6 +533,7 @@ function apiWorkspaceEndpoints(app) {
}); });
response.status(200).json({ ...result }); response.status(200).json({ ...result });
} catch (e) { } catch (e) {
console.log(e.message, e);
response.status(500).json({ response.status(500).json({
id: uuidv4(), id: uuidv4(),
type: "abort", type: "abort",
@ -655,7 +656,7 @@ function apiWorkspaceEndpoints(app) {
}); });
response.end(); response.end();
} catch (e) { } catch (e) {
console.error(e); console.log(e.message, e);
writeResponseChunk(response, { writeResponseChunk(response, {
id: uuidv4(), id: uuidv4(),
type: "abort", type: "abort",