diff options
Diffstat (limited to 'lib/puppet.rb')
-rw-r--r-- | lib/puppet.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb index 9d2f6d4c7..0679f477f 100644 --- a/lib/puppet.rb +++ b/lib/puppet.rb @@ -29,10 +29,10 @@ module Puppet def to_s str = nil - if defined? @file and defined? @line + if defined? @file and defined? @line and @file and @line str = "%s in file %s at line %s" % [@message, @file, @line] - elsif defined? @line + elsif defined? @line and @line str = "%s at line %s" % [@message, @line] else |