1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Merge pull request #4469 from turbo124/v5-develop

Return NPM String error rather than bool
This commit is contained in:
David Bomba 2020-12-11 07:27:39 +11:00 committed by GitHub
commit 69c31bca2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
}
}