Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Transformerlab App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
TransformerLab
Transformerlab App
Commits
92820a18
Commit
92820a18
authored
2 months ago
by
ali asaria
Browse files
Options
Downloads
Patches
Plain Diff
show failure if curl is not installed
parent
171a184c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/util.ts
+2
-0
2 additions, 0 deletions
src/main/util.ts
src/renderer/components/Connect/LocalConnection.tsx
+6
-0
6 additions, 0 deletions
src/renderer/components/Connect/LocalConnection.tsx
with
8 additions
and
0 deletions
src/main/util.ts
+
2
−
0
View file @
92820a18
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/renderer/components/Connect/LocalConnection.tsx
+
6
−
0
View file @
92820a18
...
@@ -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
;
},
},
()
=>
{
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment