From 9c0708d8cfb970b8313b25dd0b1f83cc445b4536 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:16:44 +0200 Subject: [PATCH] Include specific error messages in Tool Shed ManageApiKey.vue --- .../webapp/frontend/src/components/pages/ManageApiKey.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tool_shed/webapp/frontend/src/components/pages/ManageApiKey.vue b/lib/tool_shed/webapp/frontend/src/components/pages/ManageApiKey.vue index 6e1fa7fdf0cc..ff3e4bb75fad 100644 --- a/lib/tool_shed/webapp/frontend/src/components/pages/ManageApiKey.vue +++ b/lib/tool_shed/webapp/frontend/src/components/pages/ManageApiKey.vue @@ -29,7 +29,7 @@ async function init() { }) if (error) { - notifyOnCatch(new Error("Error fetching API key")) + notifyOnCatch(new Error(`Error fetching API key: ${error.err_msg}`)) return } @@ -44,7 +44,7 @@ async function deleteKey() { }) if (error) { - notifyOnCatch(new Error("Error deactivating API key")) + notifyOnCatch(new Error(`Error deactivating API key: ${error.err_msg}`)) return } @@ -60,7 +60,7 @@ async function recreateKey() { }) if (error) { - notifyOnCatch(new Error("Error re-generating API key")) + notifyOnCatch(new Error(`Error re-generating API key: ${error.err_msg}`)) return }