Converted Exception messages to be more meaningful.
This commit is contained in:
@@ -397,8 +397,14 @@ class ExportCommand extends Command
|
||||
$this->logger->notice('Marked [{backend}] [{item.title}] as [{play_state}].', $context);
|
||||
} catch (Throwable $e) {
|
||||
$this->logger->error(
|
||||
'Unhandled exception thrown during request to change play state of [{backend}] {item.type} [{item.title}].',
|
||||
[
|
||||
message: 'Exception [{error.kind}] was thrown unhandled during [{backend}] request to change play state of {item.type} [{item.title}]. Error [{error.message} @ {error.file}:{error.line}].',
|
||||
context: [
|
||||
'error' => [
|
||||
'kind' => $e::class,
|
||||
'line' => $e->getLine(),
|
||||
'message' => $e->getMessage(),
|
||||
'file' => after($e->getFile(), ROOT_PATH),
|
||||
],
|
||||
...$context,
|
||||
'exception' => [
|
||||
'file' => $e->getFile(),
|
||||
|
||||
Reference in New Issue
Block a user