Return NPM String error rather than bool

This commit is contained in:
David Bomba 2020-12-11 07:24:43 +11:00
parent b6a384737e
commit 44fdadff07

View File

@ -99,10 +99,10 @@ class SystemHealth
return empty($foo[0]) ? 'Found node, but no version information' : $foo[0]; return empty($foo[0]) ? 'Found node, but no version information' : $foo[0];
} }
return false; return 'Node not found.';
} catch (Exception $e) { } 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 empty($foo[0]) ? 'Found npm, but no version information' : $foo[0];
} }
return false; return 'NPM not found';
} catch (Exception $e) { } catch (Exception $e) {
return false; return 'NPM not found';
} }
} }