]> git.mxchange.org Git - friendica.git/commitdiff
Return network match failure in error message instead of logging
authorMatthew Exon <git.mexon@spamgourmet.com>
Thu, 29 Dec 2022 18:42:22 +0000 (19:42 +0100)
committerMatthew Exon <git.mexon@spamgourmet.com>
Thu, 29 Dec 2022 18:42:22 +0000 (19:42 +0100)
src/Model/Contact.php

index e928df7f6323570bd399d273c466acefab4316a5..bf90edcd4c3e20fd78a60677e653d158b228e7ec 100644 (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;
                }