summaryrefslogtreecommitdiffstats
path: root/lib/puppet.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-24 04:15:45 +0000
committerLuke Kanies <luke@madstop.com>2005-07-24 04:15:45 +0000
commit075ffd752de203823673d2a3846b7ff2d3dc16ec (patch)
tree0e02a3ac47100aa8093e71f0a4c8eb2adb23ec2c /lib/puppet.rb
parentb5f6a548ebee48aee3f1bab067ea6451d1052089 (diff)
making changes necessary to pass tests on all available platforms
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@458 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet.rb')
-rw-r--r--lib/puppet.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index af633e6b7..99ab48860 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -24,7 +24,12 @@ module Puppet
end
def to_s
- return @message
+ if @file and @line
+ return "%s at file %s, line %s" %
+ [@message, @file, @line]
+ else
+ return @message
+ end
end
end