Skip to content

Commit

Permalink
fix: 修复报错通知
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 24, 2024
1 parent dde0a16 commit a3e830b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"publisher": "oeyoews",
"name": "usewiki2",
"displayName": "usewiki2",
"version": "1.2.0",
"version": "1.2.1",
"private": true,
"packageManager": "[email protected]",
"description": "",
Expand Down
3 changes: 3 additions & 0 deletions src/sendTiddler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default function sendTiddler(tiddler: ITiddler) {
});
}
);
req.on('error', (error) => {
notify(error.message, 'error');
});

req.write(JSON.stringify(tiddler));
// NOTE: 必须要手动结束
Expand Down

0 comments on commit a3e830b

Please sign in to comment.