mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Return NPM String error rather than bool
This commit is contained in:
parent
b6a384737e
commit
44fdadff07
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user