Update run.js

This commit is contained in:
Luis Fernando Molina committed 2020-11-26 09:52:50 +01:00
1 parent 14f2058730
commit 64fc09a6ef
1 file changed
+25 -3
+25 -3
View File
@@ -28,7 +28,10 @@ if (
console.log(' help: Optional. Use it to see this helping information.')
console.log(' noBrowser: Optional. Use it to launch Superalgos Client only. The UI will not be loaded.')
console.log(' minMemo: Optional. Use it when your hardware has less than 8 Gb or memory.')
console.log('')
console.log('If you are having an error while trying to run the this Client, consider this:')
fatalErrorHelp()
return
}
@@ -61,5 +64,24 @@ if (optionsAccepted === 0) {
console.log('')
const { fork } = require('child_process')
fork('./Client/client.js', process.argv, options)
try {
const { fork } = require('child_process')
fork('./Client/client.js', Xprocess.argv, options)
} catch (err) {
console.log('')
console.log('Fail to create Client Process.')
console.log('')
fatalErrorHelp()
}
function fatalErrorHelp() {
console.log('')
console.log('If your device does not have MORE than 8GB of RAM then please use the minMemo option.')
console.log('If your OS does not have a user interface, please use the noBrowser option.')
console.log('')
console.log('If you continue having trouble to start the Client try:')
console.log('')
console.log('node run minMemo noBrowser')
}