botinabox 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2173,9 +2173,11 @@ ${ctx2}`;
|
|
|
2173
2173
|
void this.extractAsync(messageId);
|
|
2174
2174
|
} catch (err) {
|
|
2175
2175
|
await this.hooks.emit("typing.stop", { channel: this.channel, threadId: threadTs });
|
|
2176
|
+
const errMsg = err instanceof Error ? err.message : String(err);
|
|
2177
|
+
console.error("[ChatPipelineV2] Pipeline error:", errMsg);
|
|
2176
2178
|
await this.hooks.emit("pipeline.error", {
|
|
2177
2179
|
messageId,
|
|
2178
|
-
error:
|
|
2180
|
+
error: errMsg
|
|
2179
2181
|
});
|
|
2180
2182
|
}
|
|
2181
2183
|
});
|