Skip to content

Inspecting nested exceptions from download errors #2977

Open

Description

@vtjnash and I recently debugged an issue on Windows that boiled down to two things:

I'm quite enthused by the recent improvements to error logging, but in this case, we got a bit of a false flag; the fundamental issue was a SystemError being thrown by Tar, but since that error then caused a second error within a finally block, when we print out the error for the user, we only print a summary of the most recent error. I think this is the right thing to do normally, (since I don't want to see a full stack trace in general) but I think it would be really nice if we could somehow persist the full exception object for later inspection.

Most exceptions in the Julia world are treated as something that should either break execution, or be handled and completely ignored. We don't really have that many exceptions that could live in the grey area of "something went wrong, but I will try to continue". In this case, I feel some way of inspecting what went wrong is important. Perhaps a Vector{Exception} that gets cleared out every time you invoke a new Pkg operation, but which can be inspected to see what happened within the last time you invoked a Pkg operation. Doing so would feel very ad-hoc, but I'm not sure what the fully general case for this is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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