mirror of
https://github.com/koel/koel
synced 2025-02-26 04:07:18 +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\Console\Kernel as Artisan;
|
||||||
use Illuminate\Contracts\Hashing\Hasher as Hash;
|
use Illuminate\Contracts\Hashing\Hasher as Hash;
|
||||||
use Illuminate\Database\DatabaseManager as DB;
|
use Illuminate\Database\DatabaseManager as DB;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
use Jackiedo\DotenvEditor\DotenvEditor;
|
use Jackiedo\DotenvEditor\DotenvEditor;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
|
@ -56,6 +57,8 @@ class InitCommand extends Command
|
||||||
$this->maybeSetMediaPath();
|
$this->maybeSetMediaPath();
|
||||||
$this->maybeCompileFrontEndAssets();
|
$this->maybeCompileFrontEndAssets();
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
|
Log::error($e);
|
||||||
|
|
||||||
$this->error("Oops! Koel installation or upgrade didn't finish successfully.");
|
$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('Please try again, or visit ' . config('koel.misc.docs_url') . ' for manual installation.');
|
||||||
$this->error('😥 Sorry for this. You deserve better.');
|
$this->error('😥 Sorry for this. You deserve better.');
|
||||||
|
|
Loading…
Add table
Reference in a new issue