Return network match failure in error message instead of logging

This commit is contained in:
Matthew Exon 2022-12-29 19:42:22 +01:00
parent 272951d39b
commit 119be35a79

View File

@ -2953,7 +2953,7 @@ class Contact
}
if (($network != '') && ($ret['network'] != $network)) {
Logger::notice('Expected network ' . $network . ' does not match actual network ' . $ret['network']);
$result['message'] = DI::l10n()->t('Expected network %s does not match actual network %s', $network, $ret['network']);
return $result;
}