projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a008ff
)
util/dofile.pl: report if a template couldn't be loaded
author
Richard Levitte
<levitte@openssl.org>
Tue, 20 Sep 2016 23:49:04 +0000
(
01:49
+0200)
committer
Richard Levitte
<levitte@openssl.org>
Tue, 20 Sep 2016 23:49:04 +0000
(
01:49
+0200)
Reviewed-by: Rich Salz <rsalz@openssl.org>
util/dofile.pl
patch
|
blob
|
history
diff --git
a/util/dofile.pl
b/util/dofile.pl
index e0333fe56851dd3216be84fdf96c6577451c027d..8b0c7b41c0667749aa9030252225886ff303210b 100644
(file)
--- a/
util/dofile.pl
+++ b/
util/dofile.pl
@@
-159,7
+159,11
@@
my @autowarntext = ("WARNING: do not edit!",
my $prev_linecount = 0;
my $text =
@ARGV
- ? join("", map { my $x = "{- output_reset_on() -}".Text::Template::_load_text($_);
+ ? join("", map { my $x = Text::Template::_load_text($_);
+ if (!defined($x)) {
+ die $Text::Template::ERROR, "\n";
+ }
+ $x = "{- output_reset_on() -}" . $x;
my $linecount = $x =~ tr/\n//;
$prev_linecount = ($linecount += $prev_linecount);
$lines{$linecount} = $_;