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
ollama
Commits
5aa6bfea
Unverified
Commit
5aa6bfea
authored
Feb 27, 2024
by
Daniel Hiltgen
Committed by
GitHub
Feb 27, 2024
Browse files
Merge pull request #2785 from dhiltgen/win_download
Log unexpected server errors checking for update
parents
a189810d
1cde63dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
app/lifecycle/updater.go
app/lifecycle/updater.go
+5
-0
No files found.
app/lifecycle/updater.go
View file @
5aa6bfea
...
@@ -86,6 +86,11 @@ func IsNewReleaseAvailable(ctx context.Context) (bool, UpdateResponse) {
...
@@ -86,6 +86,11 @@ func IsNewReleaseAvailable(ctx context.Context) (bool, UpdateResponse) {
if
err
!=
nil
{
if
err
!=
nil
{
slog
.
Warn
(
fmt
.
Sprintf
(
"failed to read body response: %s"
,
err
))
slog
.
Warn
(
fmt
.
Sprintf
(
"failed to read body response: %s"
,
err
))
}
}
if
resp
.
StatusCode
!=
200
{
slog
.
Info
(
fmt
.
Sprintf
(
"check update error %d - %.96s"
,
resp
.
StatusCode
,
string
(
body
)))
return
false
,
updateResp
}
err
=
json
.
Unmarshal
(
body
,
&
updateResp
)
err
=
json
.
Unmarshal
(
body
,
&
updateResp
)
if
err
!=
nil
{
if
err
!=
nil
{
slog
.
Warn
(
fmt
.
Sprintf
(
"malformed response checking for update: %s"
,
err
))
slog
.
Warn
(
fmt
.
Sprintf
(
"malformed response checking for update: %s"
,
err
))
...
...
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