Issue #20383 has been updated by Charlie Sharpsteen.

Status changed from Unreviewed to Investigating
Assignee set to Charlie Sharpsteen

Thanks for reporting! It appears this is a result of work done on #13341 
specifically in commit 
[ac83f85](https://github.com/puppetlabs/puppet/commit/ac83f85). I'm not sure if 
this is a regression as it looks like that commit split the functionality of 
`Puppet::Error` that reported line numbers into a separate class that is 
specialized for parser errors. The bug could simply be that the `file` type, 
and possibly others, haven't been updated to use the new error class.

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

* Author: Drew Blessing
* Status: Investigating
* Priority: Normal
* Assignee: Charlie Sharpsteen
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to