util: error: Add helpers for saving and restoring of last error
Some cleanup paths overwrite a usefull error message with a less useful one and we then try to preserve the original message. The handlers added in this patch will simplify the operations since they are designed right for the purpose.
Showing
想要评论请 注册 或 登录