Skip to content

Commit

Permalink
Merge branch 'master' of github.com:venveo/craft-compress
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosnar committed Mar 22, 2019
2 parents e2f8603 + f874c96 commit 18c8e29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controllers/CompressController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public function actionGetLink($uid)
{
$record = ArchiveRecord::find()->where(['=', 'uid', $uid])->one();
if (!$record instanceof ArchiveRecord) {
\Craft::$app->response->setStatusCode(404);
return 'Archive could not be found';
return \Craft::$app->response->setStatusCode(404, 'Archive could not be found');
}

// If the asset is ready, redirect to its URL
Expand Down

0 comments on commit 18c8e29

Please sign in to comment.