Issue #20383 has been updated by Josh Cooper.

Status changed from Duplicate to Merged - Pending Release
Target version set to 3.2.3
Affected Puppet version set to 3.0.0

Although the original bug report was about file content and source, which is 
#19558, a commit was made to stable in 
[6a0127f65](https://github.com/puppetlabs/puppet/commit/6a0127f650e7adf0d154ff5aa1ecf37ede1a4fca)
 to report file names and line numbers when duplicate resource declarations are 
detected. This will be released in 3.2.3.

<pre>
(#20383) Provide location of duplicate resource in error

Commit ac83f85 cleaned up Puppet::Error and extracted file and line
presentation into a mixin. However the DuplicateResourceError exception
was relying on that behavior, and when the behavior was extracted the
location of the duplicate resource was lost.

This commit mixes in the ExternalFileError mixin and passes the file
line and number to the exception so that the duplicate resource location
can be displayed.

Thanks to Richard Clamp &lt;[email protected]> for finding the
original error and providing the base for this fix.
</pre>

----------------------------------------
Bug #20383: Bring back helpful error messages like prior to Puppet 3
https://projects.puppetlabs.com/issues/20383#change-93724

* Author: Drew Blessing
* Status: Merged - Pending Release
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: 
* Target version: 3.2.3
* Affected Puppet version: 3.0.0
* Keywords: 
* Branch: https://github.com/puppetlabs/puppet/pull/1515
----------------------------------------
Prior to Puppet 3, error messages were much more helpful.  It would print a 
message followed by "at modules/<module>/manifests/init.pp" or something 
similar.  Example:

Puppet 2.x - You cannot specify more than one of content, source, target at 
/etc/puppet/modules/examples/manifests/init.pp:8
Puppet 3.x - You cannot specify more than one of content, source, target.

It's impossible to debug the latter.  Even debug doesn't give any more helpful 
information.  Granted, this isn't the case for all of the Puppet 3 errors - 
some still print the location.  But, it needs to be universal again.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to