; Compare process status against 127 exactly
This commit is contained in:
parent
2d203ffb7e
commit
f20c2e2f3d
1 changed files with 4 additions and 2 deletions
|
@ -2348,8 +2348,10 @@ Only takes effect if Rubocop is installed."
|
||||||
;; Finding the executable is no guarantee of
|
;; Finding the executable is no guarantee of
|
||||||
;; rubocop working, especially in the presence
|
;; rubocop working, especially in the presence
|
||||||
;; of rbenv shims (which cross ruby versions).
|
;; of rbenv shims (which cross ruby versions).
|
||||||
(unless (zerop (process-exit-status proc))
|
(when (eq (process-exit-status proc) 127)
|
||||||
(flymake-log :warning "Rubocop returned non-zero status: %s"
|
;; Not sure what to do in this case. Maybe ideally we'd
|
||||||
|
;; switch back to ruby-flymake-simple.
|
||||||
|
(flymake-log :warning "Rubocop returned status 127: %s"
|
||||||
(buffer-string)))
|
(buffer-string)))
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(cl-loop
|
(cl-loop
|
||||||
|
|
Loading…
Add table
Reference in a new issue