Issue #3695 has been reported by Carl Caum.
----------------------------------------
Bug #3695: Incoherent error message on ERB syntax error
http://projects.puppetlabs.com/issues/3695
Author: Carl Caum
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Affected version: 0.25.4
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.