mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
Desktop: Improved error message when a file cannot be uploaded or downloaded
This commit is contained in:
parent
5eb3a926db
commit
567ba06b55
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user