Error codes in Firefly III API

This commit is contained in:
James Cole
2019-11-02 08:19:50 +01:00
parent 2ea1852a94
commit d749d550ee
9 changed files with 31 additions and 25 deletions

View File

@@ -236,7 +236,7 @@ class RecurrenceController extends Controller
$result = $recurring->fire();
} catch (FireflyException $e) {
Log::error($e->getMessage());
throw new FireflyException(trans('api.error_fire_cronjob'));
throw new FireflyException('200022: Error in cron job.');
}
if (false === $result) {
return response()->json([], 204);