diff --git a/run.js b/run.js index 295515a06..8f4dee47f 100644 --- a/run.js +++ b/run.js @@ -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') +} +