From 44fdadff07abc38a02aef6bcc41a775b8f4ec7db Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 11 Dec 2020 07:24:43 +1100 Subject: [PATCH] Return NPM String error rather than bool --- app/Utils/SystemHealth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index a16dd631a7..9b09f6b894 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -99,10 +99,10 @@ class SystemHealth return empty($foo[0]) ? 'Found node, but no version information' : $foo[0]; } - return false; + return 'Node not found.'; } catch (Exception $e) { - return false; + return 'Node not found.'; } } @@ -115,10 +115,10 @@ class SystemHealth return empty($foo[0]) ? 'Found npm, but no version information' : $foo[0]; } - return false; + return 'NPM not found'; } catch (Exception $e) { - return false; + return 'NPM not found'; } }