From 567ba06b558a2467d3bbf8f6d5f2d0cba9fab6c5 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 14 Nov 2021 16:50:23 +0000 Subject: [PATCH] Desktop: Improved error message when a file cannot be uploaded or downloaded --- packages/lib/JoplinServerApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/JoplinServerApi.ts b/packages/lib/JoplinServerApi.ts index 2c8f313e6..18a5f7974 100644 --- a/packages/lib/JoplinServerApi.ts +++ b/packages/lib/JoplinServerApi.ts @@ -218,7 +218,7 @@ export default class JoplinServerApi { }; if (!response.ok) { - if (options.target === 'file') throw newError('fetchBlob error', response.status); + if (options.target === 'file') throw newError(`Cannot transfer file: ${await response.text()}`, response.status); let json = null; try {