Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
e68509ad
Unverified
Commit
e68509ad
authored
May 04, 2023
by
Nicolas Patry
Committed by
GitHub
May 04, 2023
Browse files
feat(launcher): Improve error message when download process fails. (#276)
parent
f08343d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
launcher/src/main.rs
launcher/src/main.rs
+15
-2
No files found.
launcher/src/main.rs
View file @
e68509ad
...
...
@@ -627,8 +627,21 @@ fn download_convert_model(
return
Err
(
LauncherError
::
DownloadError
);
}
}
_
=>
{
tracing
::
error!
(
"Download process exited with an unknown status."
);
ExitStatus
::
Signaled
(
signal
)
=>
{
let
mut
err
=
String
::
new
();
download_process
.stderr
.take
()
.unwrap
()
.read_to_string
(
&
mut
err
)
.unwrap
();
tracing
::
error!
(
"Download process was signaled to shutdown with signal {signal}: {err}"
);
return
Err
(
LauncherError
::
DownloadError
);
}
e
=>
{
tracing
::
error!
(
"Download process exited with an unknown status.: {e:?}"
);
return
Err
(
LauncherError
::
DownloadError
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment