Skip to content
Snippets Groups Projects
Commit 92820a18 authored by ali asaria's avatar ali asaria
Browse files

show failure if curl is not installed

parent 171a184c
Branches
Tags
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import { URL } from 'url'; import { URL } from 'url';
import path from 'path'; import path from 'path';
import { log } from 'console'; import { log } from 'console';
import { dialog } from 'electron';
const fs = require('fs'); const fs = require('fs');
const os = require('os'); const os = require('os');
const { spawn, exec, ChildProcess } = require('child_process'); const { spawn, exec, ChildProcess } = require('child_process');
...@@ -269,6 +270,7 @@ export async function installLocalServer() { ...@@ -269,6 +270,7 @@ export async function installLocalServer() {
options, options,
(error, stdout, stderr) => { (error, stdout, stderr) => {
if (error) { if (error) {
dialog.showMessageBox({message: `Failed to download Transformer Lab ${error}`});
console.error(`exec error: ${error}`); console.error(`exec error: ${error}`);
return; return;
} }
......
...@@ -382,6 +382,12 @@ function InstallStepper({ setServer }) { ...@@ -382,6 +382,12 @@ function InstallStepper({ setServer }) {
setActiveStep(Steps.indexOf('CHECK_IF_INSTALLED') + 1); setActiveStep(Steps.indexOf('CHECK_IF_INSTALLED') + 1);
return true; return true;
} }
setErrorMessage('Failed to download Transformer Lab');
setInstallStatus('error');
setThinking(false);
setUserRequestedInstall(false);
setActiveStep(Steps.indexOf('CHECK_IF_INSTALLED'));
return false; return false;
}, },
() => { () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment