diff options
author | Chris Mytton <chrism@mysociety.org> | 2020-01-22 16:15:26 +0000 |
---|---|---|
committer | Chris Mytton <chrism@mysociety.org> | 2020-01-22 16:15:26 +0000 |
commit | 058a1b47ceaa962625c165afdebd92316e73b13f (patch) | |
tree | a7244de5089454dad39cf240a8af565e873544e6 /bin | |
parent | 7abbb4d8727eda5b16e00d82da461cb3ac802ac1 (diff) |
Fix bug in add_emergency_message script
There was a typo in the error message and the related conditional which
meant it was checking for $opts->questions (which doesn't exist) rather
than $opts->question, which prevented the script from being used to add
a question.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fixmystreet.com/add_emergency_message | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fixmystreet.com/add_emergency_message b/bin/fixmystreet.com/add_emergency_message index 3cfeae83e..1ed879506 100755 --- a/bin/fixmystreet.com/add_emergency_message +++ b/bin/fixmystreet.com/add_emergency_message @@ -43,8 +43,8 @@ if (!$opts->commit) { my $field; if ( $opts->mode eq 'questions' ) { - die "questions, code, yes and no required" - unless $opts->questions && $opts->code && $opts->yes && $opts->no; + die "question, code, yes and no required" + unless $opts->question && $opts->code && $opts->yes && $opts->no; $field = { order => 0, |