Permalink
Browse files

Make logger.rb not crash when not generated by CVS/SVN.

  • Loading branch information...
FooBarWidget committed Sep 2, 2009
1 parent 16222fe commit d0546e75c86da27b8f184820166ea0854608349b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/logger.rb
View
@@ -171,7 +171,7 @@
class Logger
VERSION = "1.2.6"
id, name, rev = %w$Id$
- ProgName = "#{name.chomp(",v")}/#{rev}"
+ ProgName = name ? "#{name.chomp(",v")}/#{rev}" : "logger.rb"
class Error < RuntimeError; end
class ShiftingError < Error; end

0 comments on commit d0546e7

Please sign in to comment.