From 119be35a79788713d85cc1d255b98b0619cf5193 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Thu, 29 Dec 2022 19:42:22 +0100 Subject: [PATCH] Return network match failure in error message instead of logging --- src/Model/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index e928df7f63..bf90edcd4c 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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; }