Skip to content
#

error-handling

Here are 1,293 public repositories matching this topic...

renta
renta commented Mar 24, 2021

Package version eg. v9, v10:

github.com/go-playground/locales v0.13.0
github.com/go-playground/universal-translator v0.17.0
github.com/go-playground/validator/v10 v10.2.0

Issue, Question or Enhancement:

Golangci-lint (https://github.com/golangci/golangci-lint) comes with a errorlint linter (https://github.com/polyfloyd/go-errorlint). When I switched it on, I got this issue f

TheNeikos
TheNeikos commented Apr 20, 2022

Currently IntoDiagnostic wraps the Error that it is called on with a DiagnosticError.

https://github.com/zkat/miette/blob/e6f5cacfa65cfe26255a5686ceb610b4a211931b/src/eyreish/into_diagnostic.rs#L22-L26

This means that any further inspection using is or downcast{,_ref,_mut} will fail to reach the inner type and only DiagnosticError can be reached. Since it is an implementation detai

enhancement help wanted good first issue
bryanlarsen
bryanlarsen commented Jan 15, 2022

Following the instructions on the front page, I have

#[derive(Debug, Snafu)]
pub enum Error {
    #[snafu(whatever, display("{message}"))]
    Whatever {
        message: String,
        #[snafu(source(from(Box<dyn std::error::Error>, Some)))]
        source: Option<Box<dyn std::error::Error>>,
    },

This results in the error:

error: future cannot be sent betwee
help wanted good first issue found in the field
traceback_with_variables

Adds variables to python traceback. Simple, lightweight, controllable. Debug reasons of exceptions by logging or pretty printing colorful variable contexts for each frame in a stacktrace, showing every value. Dump locals environments after errors to console, files, and loggers. Works in Jupyter and IPython. Install with pip or conda.

  • Updated Dec 19, 2021
  • Python

Improve this page

Add a description, image, and links to the error-handling topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the error-handling topic, visit your repo's landing page and select "manage topics."

Learn more