fixed app not exiting on error
This commit is contained in:
1 parent
74d38ff6eb
commit
a98d5c316d
1 file changed
+1
@@ -14,6 +14,7 @@ module Kotatsu
|
|||||||
Dir.mkdir(dir)
|
Dir.mkdir(dir)
|
||||||
if Dir.exists?(dir) == false
|
if Dir.exists?(dir) == false
|
||||||
STDERR.puts "ERROR! Could not create directory: #{dir}"
|
STDERR.puts "ERROR! Could not create directory: #{dir}"
|
||||||
|
exit(1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
File.write(file, VERSION)
|
File.write(file, VERSION)
|
||||||
|
|||||||
Reference in new issue
Block a user