mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
output stringified error for session and invocation errors
This commit is contained in:
parent
10bb05b753
commit
be02a55cac
@ -30,6 +30,7 @@ export const addSessionCreatedRejectedListener = () => {
|
|||||||
effect: (action, { getState, dispatch }) => {
|
effect: (action, { getState, dispatch }) => {
|
||||||
if (action.payload) {
|
if (action.payload) {
|
||||||
const { arg, error } = action.payload;
|
const { arg, error } = action.payload;
|
||||||
|
const stringifiedError = JSON.stringify(error);
|
||||||
moduleLog.error(
|
moduleLog.error(
|
||||||
{
|
{
|
||||||
data: {
|
data: {
|
||||||
@ -37,7 +38,7 @@ export const addSessionCreatedRejectedListener = () => {
|
|||||||
error: serializeError(error),
|
error: serializeError(error),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
`Problem creating session`
|
`Problem creating session: ${stringifiedError}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -33,6 +33,7 @@ export const addSessionInvokedRejectedListener = () => {
|
|||||||
effect: (action, { getState, dispatch }) => {
|
effect: (action, { getState, dispatch }) => {
|
||||||
if (action.payload) {
|
if (action.payload) {
|
||||||
const { arg, error } = action.payload;
|
const { arg, error } = action.payload;
|
||||||
|
const stringifiedError = JSON.stringify(error);
|
||||||
moduleLog.error(
|
moduleLog.error(
|
||||||
{
|
{
|
||||||
data: {
|
data: {
|
||||||
@ -40,7 +41,7 @@ export const addSessionInvokedRejectedListener = () => {
|
|||||||
error: serializeError(error),
|
error: serializeError(error),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
`Problem invoking session`
|
`Problem invoking session: ${stringifiedError}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -13,7 +13,7 @@ export const addInvocationErrorEventListener = () => {
|
|||||||
effect: (action, { dispatch, getState }) => {
|
effect: (action, { dispatch, getState }) => {
|
||||||
moduleLog.error(
|
moduleLog.error(
|
||||||
action.payload,
|
action.payload,
|
||||||
`Invocation error (${action.payload.data.node.type})`
|
`Invocation error (${action.payload.data.node.type}): ${action.payload.data.error}`
|
||||||
);
|
);
|
||||||
dispatch(appSocketInvocationError(action.payload));
|
dispatch(appSocketInvocationError(action.payload));
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user