1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +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 (!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; let json = null;
try { try {