Allow editing broken casks.

This commit is contained in:
Markus Reiter 2019-02-15 19:46:32 +01:00
parent 2ca56f6731
commit 5536432c4f

View File

@ -17,7 +17,7 @@ module Cask
def cask_path
casks.first.sourcefile_path
rescue CaskInvalidError
rescue CaskInvalidError, CaskUnreadableError
path = CaskLoader.path(args.first)
return path if path.file?