From: Krzysztof Wilczynski Date: Fri, 29 Apr 2011 22:15:05 +0000 (+0100) Subject: Changed wording in the error message. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f4f47f6d5f38e9d72fd0fc4701e8cb2b78fc238e;p=puppet-stdlib.git Changed wording in the error message. Signed-off-by: Krzysztof Wilczynski --- diff --git a/abs.rb b/abs.rb index aee68e4..c3e90d4 100644 --- a/abs.rb +++ b/abs.rb @@ -12,14 +12,15 @@ module Puppet::Parser::Functions value = arguments[0] + # Numbers in Puppet are often string-encoded ... if value.is_a?(String) if value.match(/^-?(?:\d+)(?:\.\d+){1}$/) value = value.to_f elsif value.match(/^-?\d+$/) value = value.to_i else - raise(Puppet::ParseError, 'abs(): Requires a numeric ' + - 'value to work with') + raise(Puppet::ParseError, 'abs(): Requires float or ' + + 'integer to work with') end end