X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futility-types.ts;h=fa1c0ffefdf27e6996789cc444f44d81de9076fc;hb=67e8ef11907ab8ae70740d7c9f4d5d225ed8d522;hp=d74773190f4c1e477e86d4a4f4c984d7d61d9f40;hpb=197b4aa5aa76186bbe6f9274d455f4bdb8baa637;p=poolifier.git diff --git a/src/utility-types.ts b/src/utility-types.ts index d7477319..fa1c0ffe 100644 --- a/src/utility-types.ts +++ b/src/utility-types.ts @@ -8,12 +8,16 @@ import type { IWorker, Task } from './pools/worker' * @typeParam Data - Type of data sent to the worker triggering an error. This can only be structured-cloneable data. */ export interface TaskError { + /** + * Task name triggering the error. + */ + readonly name: string /** * Error message. */ readonly message: string /** - * Data passed to the worker triggering the error. + * Data triggering the error. */ readonly data?: Data }