Skip to content

Commit

Permalink
Add detailed error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaychen1e committed Jul 24, 2022
1 parent da2d3ad commit 5a63852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "logseq-plugin-image-uploader",
"version": "0.0.7",
"version": "0.0.8",
"main": "dist/index.html",
"scripts": {
"dev": "vite",
Expand Down
1 change: 1 addition & 0 deletions src/ImageUploadUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function uploadImage(url: string): Promise<string> {
})
.catch((error) => {
console.error('Error:', error);
logseq.App.showMsg("Error: " + error.message, "error");
logseq.App.showMsg("Please check if PicGo is running. And this plugin can only be run in manually loaded mode due to CORS restriction, please download it from GitHub release page.", "error");
})
}
Expand Down

0 comments on commit 5a63852

Please sign in to comment.