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 424a837 commit 2d1609cCopy full SHA for 2d1609c
2 files changed
bindings/node/index.d.ts
@@ -1,3 +1,3 @@
1
/* auto-generated by NAPI-RS */
2
/* eslint-disable */
3
-export declare function main(args: Array<string>): Promise<void>
+export declare function main(args: Array<string>): void
bindings/node/src/lib.rs
@@ -8,7 +8,7 @@ pub fn main(args: Vec<String>) -> Result<()> {
8
tokio::runtime::Builder::new_multi_thread()
9
.enable_all()
10
.build()
11
- .unwrap()
+ .map_err(|e| Error::new(Status::GenericFailure, e.to_string()))?
12
.block_on(run_main(args))
13
.map_err(|e| Error::new(Status::GenericFailure, e.to_string()))
14
}
0 commit comments