Skip to content

Commit e35d320

Browse files
committed
Improve ready API error message
1 parent b15a4aa commit e35d320

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/endpoints_debug.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ You can easily view this data in your browser with this command (with Go install
132132
func ping(ar *Request) (msg string, err error) {
133133
// TODO: Remove upgrade to "ready" when all UI components have transitioned.
134134
if modules.IsStarting() || modules.IsShuttingDown() {
135-
return "", ErrorWithStatus(errors.New("portmaster is not ready"), http.StatusTooEarly)
135+
return "", ErrorWithStatus(errors.New("portmaster is not ready, reload (F5) to try again"), http.StatusTooEarly)
136136
}
137137

138138
return "Pong.", nil
@@ -141,7 +141,7 @@ func ping(ar *Request) (msg string, err error) {
141141
// ready checks if Portmaster has completed starting.
142142
func ready(ar *Request) (msg string, err error) {
143143
if modules.IsStarting() || modules.IsShuttingDown() {
144-
return "", ErrorWithStatus(errors.New("portmaster is not ready"), http.StatusTooEarly)
144+
return "", ErrorWithStatus(errors.New("portmaster is not ready, reload (F5) to try again"), http.StatusTooEarly)
145145
}
146146
return "Portmaster is ready.", nil
147147
}

0 commit comments

Comments
 (0)