mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
catch backstrace when interrupt
This commit is contained in:
parent
50ea811b61
commit
4502c43424
1 changed files with 61 additions and 56 deletions
5
bin/mpw
5
bin/mpw
|
@ -142,6 +142,7 @@ end.parse!
|
|||
# Main
|
||||
# --------------------------------------------------------- #
|
||||
|
||||
begin
|
||||
config = MPW::Config.new(options[:config])
|
||||
cli = MPW::Cli.new(config, options[:sync])
|
||||
|
||||
|
@ -200,3 +201,7 @@ end
|
|||
cli = nil
|
||||
|
||||
exit 0
|
||||
|
||||
rescue SystemExit, Interrupt
|
||||
exit 3
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue