Merge pull request #19431 from nextcloud/bugfix/noid/upload-fail-filename
Show proper file name when fetching details fails
This commit is contained in:
commit
39ba588e16
|
@ -2949,8 +2949,8 @@
|
||||||
deferred.resolve(status, data);
|
deferred.resolve(status, data);
|
||||||
})
|
})
|
||||||
.fail(function(status) {
|
.fail(function(status) {
|
||||||
OC.Notification.show(t('files', 'Could not create file "{file}"',
|
OCP.Toast.error(
|
||||||
{file: name}), {type: 'error'}
|
t('files', 'Could not fetch file details "{file}"', { file: fileName })
|
||||||
);
|
);
|
||||||
deferred.reject(status);
|
deferred.reject(status);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue