Skip to content

Commit 9845aff

Browse files
authored
Merge pull request #12886 from koic/suppress_interrupt_exception_for_lsp
Suppress `Interrupt` exception for LSP
2 parents 9e9caa6 + 1ec4ef9 commit 9845aff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rubocop/cli.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def run(args = ARGV)
5757
rescue RuboCop::Error => e
5858
warn Rainbow("Error: #{e.message}").red
5959
STATUS_ERROR
60+
rescue Interrupt
61+
warn ''
62+
warn 'Exiting...'
63+
STATUS_INTERRUPTED
6064
rescue Finished
6165
STATUS_SUCCESS
6266
rescue OptionParser::InvalidOption => e

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy