t/plugins/runcommand.t: output the filename if it fails to open
This commit is contained in:
parent
e5a4147f0a
commit
5917de4948
|
@ -40,7 +40,7 @@ ok(sendNotifications(), "Notifications execute successfully.");
|
|||
my $dat = do {
|
||||
my $filename = $ENV{'HYDRA_DATA'} . "/joboutput.json";
|
||||
open(my $json_fh, "<", $filename)
|
||||
or die("Can't open \$filename\": $!\n");
|
||||
or die("Can't open \"$filename\": $!\n");
|
||||
local $/;
|
||||
my $json = JSON->new;
|
||||
$json->decode(<$json_fh>)
|
||||
|
|
Loading…
Reference in a new issue