Add source information & error code to errors.