Skip to content

Commit

Permalink
fix release url
Browse files Browse the repository at this point in the history
  • Loading branch information
CSchank committed May 6, 2019
1 parent 7ff4613 commit 5aee00c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: petri-app-land
version: 0.1.7.0
version: 0.1.8.0
github: "cschank/petri-app-land"
license: BSD3
author: "Christopher William Schankula"
Expand Down
5 changes: 3 additions & 2 deletions src/Git.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ getLatestRelease repo = do
return $ getResponseBody rel

getRelease rel repo = do
request <- requestWithUA $ "https://api.github.com/repos/" ++ repo ++ "/releases/" ++ rel
request <- requestWithUA $ "https://api.github.com/repos/" ++ repo ++ "/releases/tags/" ++ rel
rel <- httpLBS request
return $ getResponseBody rel

Expand All @@ -61,7 +61,8 @@ loadTemplates version = do
Nothing -> do
setSGR [SetColor Foreground Vivid Red]
putStrLn "Error: Could not retrieve release from GitHub."
putStrLn $ "Additional info: " ++ show latestRelease
putStrLn $ "Additional info: "
putStrLn $ "Response: " ++ show latestRelease
putStrLn "Potential solution: Try running `stack exec pal-update` to update your project to the newest version of PAL."
putStrLn "Another potential problem: you may have exceeded the API limit. Wait an hour before trying again."
putStrLn "If this persists, post an issue at https://github.com/cschank/petri-app-land/issues with the label help-request."
Expand Down

0 comments on commit 5aee00c

Please sign in to comment.