Skip to content

Commit a4a7bc6

Browse files
committed
(antonlindstrom#15) Improve error message on failure
1 parent 57f4260 commit a4a7bc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifests/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
$type = 'authoritative'
77
) {
88

9-
if $value == '' and ! ($setting in [ 'gmysql-dnssec', 'only-notify' ]) { fail("Value can't be empty.") }
9+
if $value == '' and ! ($setting in [ 'gmysql-dnssec', 'only-notify' ]) { fail("Value for ${setting} can't be empty.") }
1010
if $setting == 'gmysql-dnssec' { $line = $setting }
1111
else { $line = "${setting}=${value}" }
1212

spec/defines/powerdns_config_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
end
100100

101101
it 'fails' do
102-
expect { subject.call } .to raise_error(/Value can't be empty./)
102+
expect { subject.call } .to raise_error(/Value for empty can't be empty./)
103103
end
104104
end
105105

0 commit comments

Comments
 (0)