1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop: Improved error message when a file cannot be uploaded or downloaded

This commit is contained in:
Laurent Cozic
2021-11-14 16:50:23 +00:00
parent 5eb3a926db
commit 567ba06b55

View File

@@ -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 {