From 1de1f503127c8c86ffc0b38073cfc497d09f5352 Mon Sep 17 00:00:00 2001 From: Brady Vercher Date: Thu, 28 Jan 2021 14:28:48 -0800 Subject: [PATCH] Pass a string to the FileDownloadFailed exception instead of an error object. --- src/Archiver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Archiver.php b/src/Archiver.php index 2c0c671..075116a 100644 --- a/src/Archiver.php +++ b/src/Archiver.php @@ -206,7 +206,7 @@ public function archive_from_url( Release $release ): string { ] ); - throw FileDownloadFailed::forFileName( $tmpfname ); + throw FileDownloadFailed::forFileName( $filename ); } if ( ! wp_mkdir_p( \dirname( $filename ) ) ) {