aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorChris Mytton <chrism@mysociety.org>2020-01-22 16:15:26 +0000
committerChris Mytton <chrism@mysociety.org>2020-01-22 16:15:26 +0000
commit058a1b47ceaa962625c165afdebd92316e73b13f (patch)
treea7244de5089454dad39cf240a8af565e873544e6 /bin
parent7abbb4d8727eda5b16e00d82da461cb3ac802ac1 (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-xbin/fixmystreet.com/add_emergency_message4
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,