Skip to content

Commit

Permalink
better messages
Browse files Browse the repository at this point in the history
  • Loading branch information
goswinr committed Jan 20, 2025
1 parent 8866a14 commit 5bbb75c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/PlugIn.fs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module internal FeshApp =
let! response = client.GetStringAsync("https://api.github.com/repos/goswinr/Fesh.Rhino/tags") |> Async.AwaitTask
let version = response |> Fesh.Util.Str.between "\"name\":\"" "\""
match version with
| None -> fesh.Log.PrintfnInfoMsg "Could get version tag from https://github.com/goswinr/Fesh.Rhino/tags "
| None -> fesh.Log.PrintfnInfoMsg "Could not get latest version tag from https://github.com/goswinr/Fesh.Rhino/tags "
| Some v ->
let cv = Reflection.Assembly.GetAssembly(typeof<Dummy>).GetName().Version.ToString()
let cv = if cv.EndsWith(".0") then cv[..^2] else cv
Expand Down Expand Up @@ -82,7 +82,7 @@ module internal FeshApp =
fesh.Log.PrintfnAppErrorMsg "Alternatively you can download it from https://www.food4rhino.com/en/app/fesh"

with _ ->
fesh.Log.PrintfnInfoMsg "Could not check for updates on https://www.food4rhino.com/en/app/fesh .\r\nAre you offline?"
fesh.Log.PrintfnInfoMsg "Could not check for updates on https://api.github.com/repos/goswinr/Fesh.Rhino/tags .\r\nAre you offline?"
}
|> Async.Start

Expand Down

0 comments on commit 5bbb75c

Please sign in to comment.