Skip to content

Commit

Permalink
return if file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
nofxx committed May 13, 2015
1 parent 1985752 commit 43d4fbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/subtitle_it/bin.rb
Expand Up @@ -75,7 +75,10 @@ def self.run!(argv, lang = nil, format = nil, force = false, _delay = nil)
@format = format

# TODO: generate_rsb
return unless File.exist?(argv[0])
unless File.exist?(argv[0])
puts "Can't find '#{argv.join}'".yellow

This comment has been minimized.

Copy link
@fazibear

fazibear May 13, 2015

Collaborator

This is some kind of error, maybe red color will be better ?

exit 1
end

@file_in = argv[0]
@file_in_ext = Bin.get_extension(@file_in)
Expand Down

0 comments on commit 43d4fbe

Please sign in to comment.