Skip to content

Commit 5a63852

Browse files
committed
Add detailed error message.
1 parent da2d3ad commit 5a63852

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "logseq-plugin-image-uploader",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"main": "dist/index.html",
55
"scripts": {
66
"dev": "vite",

Diff for: src/ImageUploadUtils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ async function uploadImage(url: string): Promise<string> {
1616
})
1717
.catch((error) => {
1818
console.error('Error:', error);
19+
logseq.App.showMsg("Error: " + error.message, "error");
1920
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");
2021
})
2122
}

0 commit comments

Comments
 (0)