diff --git a/app/Http/Controllers/SelfUpdateController.php b/app/Http/Controllers/SelfUpdateController.php index fe83bfd3a730..bd0b74df600d 100644 --- a/app/Http/Controllers/SelfUpdateController.php +++ b/app/Http/Controllers/SelfUpdateController.php @@ -120,7 +120,11 @@ class SelfUpdateController extends BaseController nlog("copying release file"); - copy($this->getDownloadUrl(), storage_path('app/invoiceninja.zip')); + if(copy($this->getDownloadUrl(), storage_path('app/invoiceninja.zip'))){ + nlog("Copied file from URL"); + } + else + return response()->json(['message' => 'Download not yet available. Please try again shortly.'], 410); nlog("Finished copying");