Skip to content

Commit 3326890

Browse files
committed
fix: throw error
1 parent 67d9870 commit 3326890

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ice/store",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "基于 React Hooks 的数据流方案",
55
"main": "lib/index.js",
66
"types": "lib/index.d.ts",

src/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class Store {
8383
} catch (e) {
8484
wrapper.error = e;
8585
afterExec();
86-
throw new Error(e);
86+
throw e;
8787
}
8888
};
8989

0 commit comments

Comments
 (0)