diff --git a/application/Espo/Core/Console/Commands/Upgrade.php b/application/Espo/Core/Console/Commands/Upgrade.php index a6390d67f7..1aead14d28 100644 --- a/application/Espo/Core/Console/Commands/Upgrade.php +++ b/application/Espo/Core/Console/Commands/Upgrade.php @@ -371,7 +371,7 @@ class Upgrade implements Command } catch (Throwable) {} - throw new Error($shellResult ?? 'Unknown error on shell_exec.'); + throw new Error($shellResult ?: 'Unknown error on shell_exec.'); } } }