diff options
| author | Dmitry Gutov | 2017-11-22 01:50:07 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2017-11-22 01:56:13 +0200 |
| commit | f20c2e2f3def260052eae486ad5e045f234301f1 (patch) | |
| tree | e2a9279bf7e058ed3e4d18632feb414c58eb6ed9 | |
| parent | 2d203ffb7eb1e9541e80f4dc9d91150e9d12be52 (diff) | |
| download | emacs-f20c2e2f3def260052eae486ad5e045f234301f1.tar.gz emacs-f20c2e2f3def260052eae486ad5e045f234301f1.zip | |
; Compare process status against 127 exactly
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 1dce49e80c3..dc1b0f8e2da 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -2348,8 +2348,10 @@ Only takes effect if Rubocop is installed." | |||
| 2348 | ;; Finding the executable is no guarantee of | 2348 | ;; Finding the executable is no guarantee of |
| 2349 | ;; rubocop working, especially in the presence | 2349 | ;; rubocop working, especially in the presence |
| 2350 | ;; of rbenv shims (which cross ruby versions). | 2350 | ;; of rbenv shims (which cross ruby versions). |
| 2351 | (unless (zerop (process-exit-status proc)) | 2351 | (when (eq (process-exit-status proc) 127) |
| 2352 | (flymake-log :warning "Rubocop returned non-zero status: %s" | 2352 | ;; Not sure what to do in this case. Maybe ideally we'd |
| 2353 | ;; switch back to ruby-flymake-simple. | ||
| 2354 | (flymake-log :warning "Rubocop returned status 127: %s" | ||
| 2353 | (buffer-string))) | 2355 | (buffer-string))) |
| 2354 | (goto-char (point-min)) | 2356 | (goto-char (point-min)) |
| 2355 | (cl-loop | 2357 | (cl-loop |