diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-01 20:22:19 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-01 20:22:19 +0000 |
| commit | 300a1632432b5aa5e0221d28fe0a2ce90c422131 (patch) | |
| tree | ce4e28ba94caab4814abd509ba1768b04bae99fb /lib/puppet/parser | |
| parent | 14d8186ebe8740eab1b320e6a1d6c98c255ad70f (diff) | |
| download | puppet-300a1632432b5aa5e0221d28fe0a2ce90c422131.tar.gz puppet-300a1632432b5aa5e0221d28fe0a2ce90c422131.tar.xz puppet-300a1632432b5aa5e0221d28fe0a2ce90c422131.zip | |
Further progress towards the next release. Lots of small bugs fixed, the paths look much better now, and Transportable is much cleaner.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@740 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/parser')
| -rw-r--r-- | lib/puppet/parser/scope.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/puppet/parser/scope.rb b/lib/puppet/parser/scope.rb index 6e0854206..996a497d5 100644 --- a/lib/puppet/parser/scope.rb +++ b/lib/puppet/parser/scope.rb @@ -544,15 +544,13 @@ module Puppet if tmp = self.objectdefined?(name, type) msg = "Duplicate definition: %s[%s] is already defined" % [type, name] + error = Puppet::ParseError.new(msg) if tmp.line - msg += " at line %s" % tmp.line + error.line = tmp.line end if tmp.file - msg += " in file %s" % tmp.file + error.file = tmp.file end - error = Puppet::ParseError.new(msg) - error.file = file - error.line = line raise error end |
