Skip to content

Commit e361f83

Browse files
fix: rethrow error on catch (#101)
* fix: rethrow error on catch * chore: bump version
1 parent 2a276e6 commit e361f83

4 files changed

Lines changed: 11 additions & 15 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ async function ocrSpace(input, options = {}) {
7373
return data;
7474
} catch (error) {
7575
console.error(error);
76+
throw error;
7677
}
7778
}
7879

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ocr-space-api-wrapper",
3-
"version": "2.4.5",
3+
"version": "2.4.6",
44
"description": "Node.js wrapper for ocr.space APIs.",
55
"main": "index.js",
66
"scripts": {

test/test.js

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)