feat: improve events emission
[poolifier.git] / src / utility-types.ts
index cc04f2cb99113b9cb66305c102ae5c8fe88563ad..21a442538d4988eba011f7904b2467cc895c3593 100644 (file)
@@ -26,9 +26,13 @@ export interface MessageValue<
    */
   readonly kill?: KillBehavior | 1
   /**
-   * Error.
+   * Task error.
    */
   readonly error?: string
+  /**
+   * Task data triggering task error.
+   */
+  readonly errorData?: unknown
   /**
    * Runtime.
    */