mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): do not swallow errors during schema parsing
Unknown errors were swallowed during schema parsing. Now they log a warning.
This commit is contained in:
parent
ce3d37e829
commit
e8bf9ea058
@ -124,6 +124,20 @@ export const parseSchema = (
|
||||
message: e.message,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
logger('nodes').warn(
|
||||
{
|
||||
node: type,
|
||||
field: propertyName,
|
||||
schema: parseify(property),
|
||||
error: serializeError(e),
|
||||
},
|
||||
t('nodes.inputFieldTypeParseError', {
|
||||
node: type,
|
||||
field: propertyName,
|
||||
message: 'unknown error',
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -203,6 +217,20 @@ export const parseSchema = (
|
||||
message: e.message,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
logger('nodes').warn(
|
||||
{
|
||||
node: type,
|
||||
field: propertyName,
|
||||
schema: parseify(property),
|
||||
error: serializeError(e),
|
||||
},
|
||||
t('nodes.outputFieldTypeParseError', {
|
||||
node: type,
|
||||
field: propertyName,
|
||||
message: 'unknown error',
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
return outputsAccumulator;
|
||||
|
Loading…
Reference in New Issue
Block a user