Skip to content

Commit

Permalink
Report error messages to *Warnings* buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinant committed Jun 2, 2015
1 parent 43d5ed8 commit 5188e2e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gitlab-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ Defaults to `error'."
(gitlab--perform-put-request uri params)))))
(if (= status-code (request-response-status-code response))
(request-response-data response)
(error
(signal 'gitlab-http-error
(list (request-response-status-code response)
(request-response-data response)))))))
(lwarn '(gitlab) :error "HTTP %s Error %s on URI: %s" type (request-response-status-code response) uri))))


;; (defmacro with-gitlab-request (uri params status-code response-data &rest body)
Expand Down

0 comments on commit 5188e2e

Please sign in to comment.