Skip to content

Commit 5748508

Browse files
committed
Update error for conversion of source.
1 parent 576f116 commit 5748508

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/persistance/src/services/prisma/mappers/EventMapper.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ export class EventMapper
5252
) {
5353
return input;
5454
}
55-
throw new Error();
55+
throw new Error(
56+
"Event Source must be one of 'beforeTxHook', 'afterTxHook' or 'runtime'"
57+
);
5658
}
5759
}
5860

0 commit comments

Comments
 (0)