Remove debugging infrastructure.

Bug was found, and things seems to work.  In summary, a comparison for
err != nil was performed where I intended err == nil instead.