mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
feat: log init errors
This commit is contained in:
parent
686c5f70fe
commit
3c5c24c104
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,7 @@ use Illuminate\Console\Command;
|
|||
use Illuminate\Contracts\Console\Kernel as Artisan;
|
||||
use Illuminate\Contracts\Hashing\Hasher as Hash;
|
||||
use Illuminate\Database\DatabaseManager as DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Jackiedo\DotenvEditor\DotenvEditor;
|
||||
use Throwable;
|
||||
|
||||
|
@ -56,6 +57,8 @@ class InitCommand extends Command
|
|||
$this->maybeSetMediaPath();
|
||||
$this->maybeCompileFrontEndAssets();
|
||||
} catch (Throwable $e) {
|
||||
Log::error($e);
|
||||
|
||||
$this->error("Oops! Koel installation or upgrade didn't finish successfully.");
|
||||
$this->error('Please try again, or visit ' . config('koel.misc.docs_url') . ' for manual installation.');
|
||||
$this->error('😥 Sorry for this. You deserve better.');
|
||||
|
|
Loading…
Reference in a new issue