X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fwhatever-dl.git;a=blobdiff_plain;f=bin%2Fwhatever-dl;h=970e0e09eb809097d83059ee615c3dfadcbfa039;hp=cde9e4dbbaaac2e3eb25790a2767d1c4d59d3c2c;hb=af614c64b3d5998471af5e54b3d8f36d3e00cc63;hpb=9390083b114048a6782454a37f799733707ee5dc diff --git a/bin/whatever-dl b/bin/whatever-dl index cde9e4d..970e0e0 100755 --- a/bin/whatever-dl +++ b/bin/whatever-dl @@ -106,7 +106,7 @@ if (__FILE__ == $0) then rescue Errno::ECONNREFUSED => e puts 'The connection to the server (to download the video file) was refused. Check your connection, and try again later.' Kernel.exit(EXIT_CONNECTION_REFUSED) - rescue Errno:EACCES => e + rescue Errno::EACCES => e puts "Access denied. Check that you have write permission to the output file/directory. Details: #{e.message}." rescue OpenURI::HTTPError => e puts "An HTTP error occurred while downloading the video file: #{e.message}."