diff --git a/package.json b/package.json index 296300a..a6c1d12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "logseq-plugin-image-uploader", - "version": "0.0.7", + "version": "0.0.8", "main": "dist/index.html", "scripts": { "dev": "vite", diff --git a/src/ImageUploadUtils.ts b/src/ImageUploadUtils.ts index 2ace2f0..ff1a5ec 100644 --- a/src/ImageUploadUtils.ts +++ b/src/ImageUploadUtils.ts @@ -16,6 +16,7 @@ async function uploadImage(url: string): Promise { }) .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"); }) }