]> git.eshelyaron.com Git - emacs.git/commitdiff
; Compare process status against 127 exactly
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 21 Nov 2017 23:50:07 +0000 (01:50 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 21 Nov 2017 23:56:13 +0000 (01:56 +0200)
lisp/progmodes/ruby-mode.el

index 1dce49e80c33e3dfb727f0028d5750fc4b780147..dc1b0f8e2dae411445b9f85db324186e4f262931 100644 (file)
@@ -2348,8 +2348,10 @@ Only takes effect if Rubocop is installed."
          ;; Finding the executable is no guarantee of
          ;; rubocop working, especially in the presence
          ;; of rbenv shims (which cross ruby versions).
-         (unless (zerop (process-exit-status proc))
-           (flymake-log :warning "Rubocop returned non-zero status: %s"
+         (when (eq (process-exit-status proc) 127)
+           ;; 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)))
          (goto-char (point-min))
          (cl-loop