Skip to content

Commit

Permalink
Correct printf arguments in error message
Browse files Browse the repository at this point in the history
Before the fix this unintentionally printed $@ twice.
  • Loading branch information
jonjensen committed Nov 2, 2017
1 parent 7881890 commit ec4fcd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eg/survey_wizard/survey_wizard.coretag
@@ -1,4 +1,4 @@
# Copyright 2002-2007 Interchange Development Group and others
# Copyright 2002-2017 Interchange Development Group and others
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -8,7 +8,7 @@
UserTag survey-wizard Order name
UserTag survey-wizard AddAttr
UserTag survey-wizard HasEndTag
UserTag survey-wizard Version $Revision: 1.3 $
UserTag survey-wizard Version 1.5
UserTag survey-wizard Routine <<EOR

use vars qw/$Session $Tag $CGI $Tmp $Scratch $Values $ready_safe/;
Expand Down Expand Up @@ -875,7 +875,7 @@ sub {
};
if($@) {
$Tag->error(
"error during perl conditional: $@\ncode was:\n%s",
"error during perl conditional: %s\ncode was:\n%s",
$@,
$optref->{_condition},
);
Expand Down

0 comments on commit ec4fcd8

Please sign in to comment.