From fd5d1398f1b03d1a3ab15e23037d93e94b50ae1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Wed, 3 Jun 2020 23:23:41 +0300 Subject: [PATCH] log update failure --- app/Console/Commands/FinishUpdate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Console/Commands/FinishUpdate.php b/app/Console/Commands/FinishUpdate.php index 8d3b32f06..86e810157 100644 --- a/app/Console/Commands/FinishUpdate.php +++ b/app/Console/Commands/FinishUpdate.php @@ -43,6 +43,8 @@ class FinishUpdate extends Command // Check if file mirror was successful $version = ($alias == 'core') ? version('short') : module($alias)->get('version'); if ($version != $new) { + logger($alias . ' update failed:: file version > ' . $version . ' -vs- ' . 'request version > ' . $new); + throw new \Exception(trans('modules.errors.finish', ['module' => $alias])); }