[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/scripts/embedcover
From: Mark Kretschmann <markey () web ! de>
Date: 2007-05-04 7:39:59
Message-ID: 1178264399.435924.27069.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 660942 by markey:
Catch exceptions from open().
M +3 -3 addimage2mp3.rb
--- trunk/extragear/multimedia/amarok/src/scripts/embedcover/addimage2mp3.rb #660941:660942
@@ -204,9 +204,9 @@
puts()
print( "Writing file.. " )
-destfile = File::open( destination, File::CREAT|File::TRUNC|File::WRONLY )
-
-if destfile == nil
+begin
+ destfile = File::open( destination, File::CREAT|File::TRUNC|File::WRONLY )
+rescue
puts( "Error: Destination file is not writable." )
exit( 1 )
end
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic