We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c3d78f commit 441bef4Copy full SHA for 441bef4
script/cljdoc_preview.clj
@@ -137,13 +137,14 @@
137
(status/line :detail "%s container is running" (:name container))
138
(let [url (str "http://localhost:" (:port container))]
139
(loop []
140
- (try
141
- (curl/get url)
142
- (println url "reached")
143
- (catch Exception _e
144
- (println "waiting on" url " - hit Ctrl-C to give up")
145
- (Thread/sleep 4000)
146
- (recur))))))
+ (if-not (try
+ (curl/get url)
+ url
+ (catch Exception _e
+ (Thread/sleep 4000)))
+ (do (println "waiting on" url " - hit Ctrl-C to give up")
+ (recur))
147
+ (println "reached" url)))))
148
149
(defn status-server-print [container]
150
(status/line :detail (str (:name container) ": " (status-server container))))
0 commit comments