Revert "Use newErrorf instead of fmt.Sprintf and newError"

This reverts commit 7dd5960638c0e29f435e18389d11e19650b38132.