better detect errors in fed sharing response
This commit is contained in:
parent
04e3da0cf5
commit
ee674844f2
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@
|
|||
}).fail(function(xhr) {
|
||||
var msg = t('core', 'Error');
|
||||
var result = xhr.responseJSON;
|
||||
if (result.ocs && result.ocs.meta) {
|
||||
if (result && result.ocs && result.ocs.meta) {
|
||||
msg = result.ocs.meta.message;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue