Issue #3695 has been updated by Michael Halligan.

Affected Puppet version changed from 0.25.4 to 2.7.1

2.7.1 is also affected. 
----------------------------------------
Bug #3695: Incoherent error message on ERB syntax error
https://projects.puppetlabs.com/issues/3695

Author: Carl Caum
Status: Accepted
Priority: Normal
Assignee: 
Category: error reporting
Target version: 
Affected Puppet version: 2.7.1
Keywords: 
Branch: 


I have had the following ERB template with a syntax error on the first line 
(missing % for password variable):

    test -z "<%= user %>" || export USER_PIECE="--username <%= user %> 
--password <%= password >" 
    if svn info <%= destination %> 2> /dev/null; then 
    svn -q --non-interactive $USER_PIECE up <%= destination %>; 
    else
    mkdir -p <%= destination %>; 
    svn -q --non-interactive $USER_PIECE co <%= source %> <%= destination %>; 
    fi;


This is the puppet output:

    bash-3.2# puppetd --test
    ......
    info: Loading facts in rm_privs
    info: Loading facts in env_vars
    err: Could not retrieve catalog from remote server: wrong header line format
    warning: Not using cache on failed catalog
    err: Could not retrieve catalog; skipping run


I think it would be helpful to have ERB compilation errors more coherent to 
make debugging easier.




-- 
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to