Use job wrapper for INFO call
This commit is contained in:
@@ -104,6 +104,7 @@ func (c *Client) handleError(w http.ResponseWriter, err error, message string, s
|
||||
response := ErrorResponse{
|
||||
Message: message,
|
||||
Details: err.Error(),
|
||||
Status: status,
|
||||
}
|
||||
json.NewEncoder(w).Encode(response)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ func InfoHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
msg, err := c.Info()
|
||||
if err != nil {
|
||||
c.handleError(w, err, "Could not get info", http.StatusBadRequest)
|
||||
c.handleError(w, err, "Could not get project info and initialize gitlab.nvim plugin", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user