Merge pull request #19431 from nextcloud/bugfix/noid/upload-fail-filename

Show proper file name when fetching details fails
This commit is contained in:
Roeland Jago Douma 2020-02-12 20:26:26 +01:00 committed by GitHub
commit 39ba588e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2949,8 +2949,8 @@
deferred.resolve(status, data);
})
.fail(function(status) {
OC.Notification.show(t('files', 'Could not create file "{file}"',
{file: name}), {type: 'error'}
OCP.Toast.error(
t('files', 'Could not fetch file details "{file}"', { file: fileName })
);
deferred.reject(status);
});