mirror of https://github.com/laurent22/joplin.git
Desktop: Improved error message when a file cannot be uploaded or downloaded
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