Skip to content

CLI/Oil capture the last error on shutdown Event #75

@polmartinez

Description

@polmartinez

Hi,
I can't capture a last error when execute refine command on oil.

in bootstrap.php

\Event::register('shutdown', function() {
    $e = error_get_last();
    // $e is null
});

In all of cases $e is empty when create an Exception on script.

It's possible capture the last error on oil -> refine call for logging?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions