Skip to content
Snippets Groups Projects
Commit be7d56e2 authored by Thomas Bellman's avatar Thomas Bellman
Browse files

Name function in error from canonicalize_macaddress().

In one error raised by canonicalize_macaddress(), the message did not
specify which function was complaining.  Add that to the message.
parent 99c48f7d
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,8 @@ module Puppet::Parser::Functions
# Two groups of six digits each; "-" or "." as separator
canon = groups.join("").gsub(/(..)/, '\1:').chomp(":")
else
raise(Puppet::ParseError, "Badly formed MAC address `#{mac}'")
raise(Puppet::ParseError,
"canonicalize_macaddress(): Badly formed MAC address `#{mac}'")
end
canon_macs << canon.downcase
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment