diff options
author | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-29 23:15:05 +0100 |
---|---|---|
committer | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> | 2011-04-29 23:15:05 +0100 |
commit | f4f47f6d5f38e9d72fd0fc4701e8cb2b78fc238e (patch) | |
tree | 072830ef2c180e1db565b410c122baef4ea4edfe | |
parent | 94db34684d3cc3fff64fd3336a53fa1eb56fc83d (diff) | |
download | puppet-stdlib-f4f47f6d5f38e9d72fd0fc4701e8cb2b78fc238e.tar.gz puppet-stdlib-f4f47f6d5f38e9d72fd0fc4701e8cb2b78fc238e.tar.bz2 |
Changed wording in the error message.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
-rw-r--r-- | abs.rb | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |