I have this very simple code
shell = Shell.new
Now suppose that the variable path is no longer available on disk or you
don’t have permissions to access the file. How can I capture this error
and provide a helpful message? I have already tried it with rescue
Errno::EACCES but that didn’t work. Thanks.