Skip to content

Commit

Permalink
Pass a string to the FileDownloadFailed exception instead of an error…
Browse files Browse the repository at this point in the history
… object.
  • Loading branch information
bradyvercher committed Jan 28, 2021
1 parent 5e5fb91 commit 1de1f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Archiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) ) {
Expand Down

0 comments on commit 1de1f50

Please sign in to comment.