mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
php-cs-fixer
This commit is contained in:
parent
1d0f5b2ad7
commit
82bbe5b389
@ -847,7 +847,7 @@ class InvoiceController extends BaseController
|
||||
$file = base_path("public/storage/{$file_path}");
|
||||
|
||||
return response()->download($file, basename($file));
|
||||
} catch(\Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return response(['message' => 'Oops, something went wrong. Make sure you have symlink to storage/ in public/ directory.'], 500);
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ class SetupController extends Controller
|
||||
if ($db['success'] == false) {
|
||||
throw new \Exception($db['message']);
|
||||
}
|
||||
} catch(\Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return response([
|
||||
'message' => 'Oops, connection to database was not successful.',
|
||||
'error' => $e->getMessage(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user