AI rule action error handling

pull/215/head
M66B 7 months ago
parent 7c4b07ea0f
commit 248b2382bc

@ -1571,7 +1571,13 @@ public class EntityRule {
return true;
}
try {
message.preview = AI.getSummaryText(context, message);
} catch (Throwable ex) {
message.error = Log.formatThrowable(ex);
db.message().setMessageError(message.id, message.error);
return false;
}
db.message().setMessageContent(message.id, message.content, message.language, message.plain_only, message.preview, message.warning);
db.message().setMessageNotifying(message.id, 0);

Loading…
Cancel
Save