Skip to content

Commit

Permalink
Fixing issue w. comment lines & bug in command line tool
Browse files Browse the repository at this point in the history
  • Loading branch information
karlll committed Apr 14, 2013
1 parent 1aa8679 commit 9b6af3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/filtri
Expand Up @@ -17,7 +17,7 @@ rescue SystemExit => sys_exit
exit sys_exit.status
rescue Exception => ex

$sterr.puts "[Error] #{ex.message}"
$sterr.puts " -----> #{ex.backtrace.join("\n ")}" if debug
$stderr.puts "[Error] #{ex.message}"
$stderr.puts " -----> #{ex.backtrace.join("\n ")}" if debug

end
2 changes: 1 addition & 1 deletion lib/filtri.rb
Expand Up @@ -134,7 +134,7 @@ def add_rule_str(rule_str)
# add rule
self.send(op.to_sym,arg_hash)
else
raise FiltriInitError, "Unknown rule: #{op}" unless op == "#"
raise FiltriInitError, "Unknown rule: #{op}" unless ( op == "#" || l[0] == "#" )
end

end
Expand Down

0 comments on commit 9b6af3d

Please sign in to comment.