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

pull/5729/head
Laurent Cozic 2021-11-14 16:50:23 +00:00
parent 5eb3a926db
commit 567ba06b55
1 changed files with 1 additions and 1 deletions

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 {