Skip to content

Commit

Permalink
chore: provide better error when queryScreenpipe fails
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Feb 20, 2025
1 parent d4fd975 commit 6950e1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion screenpipe-js/browser-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@screenpipe/browser",
"version": "0.1.28",
"version": "0.1.29",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-js/browser-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class BrowserPipeImpl implements BrowserPipe {
return convertToCamelCase(data) as ScreenpipeResponse;
} catch (error) {
console.error("error querying screenpipe:", error);
return null;
throw error;
}
}

Expand Down
2 changes: 1 addition & 1 deletion screenpipe-js/node-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@screenpipe/js",
"version": "1.0.12",
"version": "1.0.13",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion screenpipe-js/node-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class NodePipe {
return convertToCamelCase(data) as ScreenpipeResponse;
} catch (error) {
console.error("error querying screenpipe:", error);
return null;
throw error;
}
}

Expand Down

0 comments on commit 6950e1e

Please sign in to comment.