Skip to content
Snippets Groups Projects
  • Colin Walters's avatar
    607f1775
    errors: Add GLNX_AUTO_PREFIX_ERROR · 607f1775
    Colin Walters authored
    In a lot of places in ostree, we end up prefixing errors in the *caller*.
    Often we only have 1-2 callers, and doing the error prefixing isn't
    too duplicative.  But there are definitely cases where it's cleaner
    to do the prefixing in the callee.  We have functions that aren't
    ported to new style for this reason (they still do the prefixing
    in `out:`).
    
    Introduce a cleanup-oriented version of error prefixing so we can port those
    functions too.
    607f1775
    History
    errors: Add GLNX_AUTO_PREFIX_ERROR
    Colin Walters authored
    In a lot of places in ostree, we end up prefixing errors in the *caller*.
    Often we only have 1-2 callers, and doing the error prefixing isn't
    too duplicative.  But there are definitely cases where it's cleaner
    to do the prefixing in the callee.  We have functions that aren't
    ported to new style for this reason (they still do the prefixing
    in `out:`).
    
    Introduce a cleanup-oriented version of error prefixing so we can port those
    functions too.