diff --git a/app/Models/Preference.php b/app/Models/Preference.php index 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); }