We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9a4f5 commit 19fd3c6Copy full SHA for 19fd3c6
src/nodes/Error.ts
@@ -9,7 +9,7 @@ type P = {
9
type R = unknown;
10
11
export const module: ModuleDefinition<P, R> = {
12
- version: '1.1.1',
+ version: '1.1.2',
13
moduleName: 'Error',
14
description: 'Raise an error with specified name and message.',
15
params: {
@@ -32,7 +32,7 @@ export const module: ModuleDefinition<P, R> = {
32
};
33
34
export const compute: ModuleCompute<P, R> = params => {
35
- const error = new Error(params.message);
+ const error = new Error();
36
error.name = params.name;
37
(error as any).message = params.message;
38
(error as any).status = params.status;
0 commit comments