Show proper file name when fetching details fails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6bac7631c0
commit
ce67a3a2db
1 changed files with 2 additions and 2 deletions
|
@ -2903,8 +2903,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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue