helper: Convert more error-formatting functions to use `structerr` package
This is the second part to convert error-formatting functions to use the structerr
package.
This is the second part to convert error-formatting functions to use the structerr
package.