mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🚸 Add error logging for unconfigured forged blocks
This commit is contained in:
parent
a634bb3076
commit
f07cf79aba
@ -27,6 +27,15 @@ export const executeForgedBlock = async (
|
||||
const blockDef = forgedBlocks[block.type];
|
||||
if (!blockDef) return { outgoingEdgeId: block.outgoingEdgeId };
|
||||
const action = blockDef.actions.find((a) => a.name === block.options.action);
|
||||
if (!block.options || !action)
|
||||
return {
|
||||
outgoingEdgeId: block.outgoingEdgeId,
|
||||
logs: [
|
||||
{
|
||||
description: `${block.type} is not configured`,
|
||||
},
|
||||
],
|
||||
};
|
||||
const noCredentialsError = {
|
||||
status: "error",
|
||||
description: "Credentials not provided for integration",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user