From 5a638525c03c6f87708cc2aade465b9dfe31dfcd Mon Sep 17 00:00:00 2001 From: JJAYCHEN <31304335+JJAYCHEN1e@users.noreply.github.com> Date: Sun, 24 Jul 2022 10:15:59 +0800 Subject: [PATCH] Add detailed error message. --- package.json | 2 +- src/ImageUploadUtils.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"); }) }