From 5917de4948d97697b406218b9c8f3db0dc92e9ec Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 17 Nov 2021 14:20:52 -0500 Subject: [PATCH] t/plugins/runcommand.t: output the filename if it fails to open --- t/plugins/runcommand.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/plugins/runcommand.t b/t/plugins/runcommand.t index a010697c..deb59ffe 100644 --- a/t/plugins/runcommand.t +++ b/t/plugins/runcommand.t @@ -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>)