From b42375513dd5ec945acbae20841b87135d968369 Mon Sep 17 00:00:00 2001 From: Alex White Date: Fri, 16 Sep 2022 20:17:33 +0100 Subject: [PATCH 1/3] updated console messages, improved english grammar --- Launch-Scripts/runPlatform.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Launch-Scripts/runPlatform.js b/Launch-Scripts/runPlatform.js index 459b1d9545..f2574c950b 100644 --- a/Launch-Scripts/runPlatform.js +++ b/Launch-Scripts/runPlatform.js @@ -6,7 +6,7 @@ const fatalErrorHelp = () => { 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 Superalgos Platform Client try:') + console.log('If you continue having trouble starting the Superalgos Platform Client try:') console.log('') console.log('node platform minMemo noBrowser') return 'fatal error help message displayed' @@ -37,7 +37,7 @@ const runPlatform = () => { console.log('') console.log('OPTIONS:') console.log('') - console.log(' help: Optional. Use it to see this helping information.') + console.log(' help: Optional. Use it to see this helpful information.') console.log(' noBrowser: Optional. Use it to launch Superalgos Platform Client only. The Superalgos Platform UI will not be loaded.') console.log(' minMemo: Optional. Use it when your hardware has less than 8 Gb or memory.') console.log(' demoMode: Optional. Use it to launch Superalgos in Demo Mode. Users will be able to use the UI but not run Tasks.') @@ -45,7 +45,7 @@ const runPlatform = () => { console.log('') console.log('WORKSPACE: The name of the workspace to load on startup.') console.log('') - console.log('If you are having an error while trying to run the Superalgos Platform Client, consider this:') + console.log('If you are getting errors while trying to run the Superalgos Platform Client, consider this:') return 'help message has been displayed' } @@ -104,7 +104,7 @@ const runPlatform = () => { return 'client running' } catch (err) { console.log('') - console.log('Fail to create Superalgos Platform Client Process.') + console.log('Failed to create Superalgos Platform Client Process.') console.log('') fatalErrorHelp() @@ -112,7 +112,7 @@ const runPlatform = () => { } } else { console.log('') - console.log('ERROR: node_modules does not exist. Try running "node setup" to solve this issue. Then try again. You can finded detailed instructions for this in the ReadMe.') + console.log('ERROR: node_modules does not exist. Try running "node setup" to solve this issue. Then try again. You can find detailed instructions for this in the ReadMe.') console.log('') } From 7dcc4bb33492dca0be90043abeab8529ea199d91 Mon Sep 17 00:00:00 2001 From: Alex White Date: Fri, 16 Sep 2022 20:31:53 +0100 Subject: [PATCH 2/3] updated english grammar --- Launch-Scripts/createShortcut.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launch-Scripts/createShortcut.js b/Launch-Scripts/createShortcut.js index b62abb3397..e645079997 100644 --- a/Launch-Scripts/createShortcut.js +++ b/Launch-Scripts/createShortcut.js @@ -161,7 +161,7 @@ const createShortcut = () => { // Misc Operating System } else { - console.log("Automatic shortcut creation is not currently supported on your operating system. If you would like to see your operating system added please reachout on discord or telegram to let the devs know.") + console.log("Automatic shortcut creation is not currently supported on your operating system. If you would like to see your operating system added please reach out on discord or telegram to let the devs know.") return 'Shortcuts not supported on your system' } } From 1af2d15d2d828fd28b473c1eafa4d309e00df3a9 Mon Sep 17 00:00:00 2001 From: Alex White Date: Fri, 16 Sep 2022 20:32:26 +0100 Subject: [PATCH 3/3] normalised error output in startup scripts --- Launch-Scripts/runSetup.js | 4 ++-- Launch-Scripts/runSetupPlugins.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Launch-Scripts/runSetup.js b/Launch-Scripts/runSetup.js index c4e517d7de..bbeb4ee272 100644 --- a/Launch-Scripts/runSetup.js +++ b/Launch-Scripts/runSetup.js @@ -150,7 +150,7 @@ const runSetup = (tfjs=false) => { (error, stdout) => { if (error) { console.log('') - console.log('There was an error installing some dependencies error: ') + console.log('There was an error installing some dependencies: ') console.log('') console.log(error) process.exit(1) @@ -174,8 +174,8 @@ const runSetup = (tfjs=false) => { } catch (e) { console.log('') console.log('Event error: ') - console.log(e) console.log('') + console.log(e) process.exit(1) } }) diff --git a/Launch-Scripts/runSetupPlugins.js b/Launch-Scripts/runSetupPlugins.js index f3af59a0c6..23c7eb4bb9 100644 --- a/Launch-Scripts/runSetupPlugins.js +++ b/Launch-Scripts/runSetupPlugins.js @@ -108,7 +108,7 @@ const cloneTheRepoPromise = async (resolve) => { resolve() }) .catch((err) => { - console.log('[ERROR] Setup of repo ' + global.env.PROJECT_PLUGIN_MAP[propertyName].repo + ' failed. You will need to set the git remote manually.') + console.log('[ERROR] Setup of repo ' + global.env.PROJECT_PLUGIN_MAP[propertyName].repo + ' failed. You will need to set the git remote manually. ') console.log('') console.log(err) resolve()