From be02a55cac646fe4fa70b71d3a6c05f4d29e956c Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Wed, 12 Jul 2023 13:12:26 -0400 Subject: [PATCH] output stringified error for session and invocation errors --- .../middleware/listenerMiddleware/listeners/sessionCreated.ts | 3 ++- .../middleware/listenerMiddleware/listeners/sessionInvoked.ts | 3 ++- .../listeners/socketio/socketInvocationError.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionCreated.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionCreated.ts index c502b4e38c..a55bd07c4d 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionCreated.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionCreated.ts @@ -30,6 +30,7 @@ export const addSessionCreatedRejectedListener = () => { effect: (action, { getState, dispatch }) => { if (action.payload) { const { arg, error } = action.payload; + const stringifiedError = JSON.stringify(error); moduleLog.error( { data: { @@ -37,7 +38,7 @@ export const addSessionCreatedRejectedListener = () => { error: serializeError(error), }, }, - `Problem creating session` + `Problem creating session: ${stringifiedError}` ); } }, diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionInvoked.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionInvoked.ts index 6aff246cbe..7fc2e07dcd 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionInvoked.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/sessionInvoked.ts @@ -33,6 +33,7 @@ export const addSessionInvokedRejectedListener = () => { effect: (action, { getState, dispatch }) => { if (action.payload) { const { arg, error } = action.payload; + const stringifiedError = JSON.stringify(error); moduleLog.error( { data: { @@ -40,7 +41,7 @@ export const addSessionInvokedRejectedListener = () => { error: serializeError(error), }, }, - `Problem invoking session` + `Problem invoking session: ${stringifiedError}` ); } }, diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationError.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationError.ts index 51480bbad4..f0dd656097 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationError.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketInvocationError.ts @@ -13,7 +13,7 @@ export const addInvocationErrorEventListener = () => { effect: (action, { dispatch, getState }) => { moduleLog.error( action.payload, - `Invocation error (${action.payload.data.node.type})` + `Invocation error (${action.payload.data.node.type}): ${action.payload.data.error}` ); dispatch(appSocketInvocationError(action.payload)); },