should test error creation code

Bug #1169834 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Go OpenStack Exchange
Triaged
Medium
Unassigned

Bug Description

We had a bug with how we were formatting error messages:
  https://codereview.appspot.com/8818043

Clearly that code wasn't being exercised by the test suite. (err.Newf(foo, fmt, vars) not Newf(foo, var, fmt))

If the code is hard to test right now, it should be refactored to make it easier to at least have unit-level tests that we are going to be giving decent error messages to users.

tags: added: tech-debt
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.