summaryrefslogtreecommitdiffstats
path: root/lib/puppet.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-19 06:10:33 +0000
committerLuke Kanies <luke@madstop.com>2005-07-19 06:10:33 +0000
commitde91dbdc5c554136437250daa512050f6d46fbc8 (patch)
tree745391ccfa27e682f272364ef15e7c092ce2f68e /lib/puppet.rb
parent9ba72f574aba66020913c7ac837634d5ca0fb13e (diff)
temp commit before i change the whole way that i am doing source + recursion
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@421 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet.rb')
-rw-r--r--lib/puppet.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/puppet.rb b/lib/puppet.rb
index 415bd253b..07198ffa3 100644
--- a/lib/puppet.rb
+++ b/lib/puppet.rb
@@ -17,6 +17,15 @@ require 'puppet/log'
module Puppet
class Error < RuntimeError
attr_accessor :stack
+ def initialize(message)
+ @message = message
+
+ @stack = caller
+ end
+
+ def to_s
+ return @message
+ end
end
class DevError < Error; end