Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Display message about common error.
James Cole01de1479006a
diff --git a/app/Models/Preference.php b/app/Models/Preference.phpindex cebb90f2c2..7a843e2470 100644--- a/app/Models/Preference.php+++ b/app/Models/Preference.php@@ -58,9 +58,12 @@ class Preference extends Model$data = Crypt::decrypt($value);} catch (DecryptException $e) {Log::error('Could not decrypt preference.', ['id' => $this->id, 'name' => $this->name, 'data' => $value]);- throw new FireflyException('Could not decrypt preference #' . $this->id . '.');+ throw new FireflyException(+ sprintf('Could not decrypt preference #%d. If this error persists, please run "php artisan cache:clear" on the command line.', $this->id)+ );}+return json_decode($data);}