mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Display message about common error.
This commit is contained in:
parent
a7e5fcc806
commit
01de147900
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user