Use switch status.Code (#1334)
Use switch status.Code (#1334)

Cleanup error logic with a cleaner swich statement

Also, convert log and map IDs to %v rather than %x for consistency with
the rest of the code base and easier error parsing
Martin2112/trillian,google/trillian,daviddrysdale/trillian,gdbelvin/trillian,gdbelvin/trillian,gdbelvin/trillian,Martin2112/trillian,RJPercival/trillian,daviddrysdale/trillian,daviddrysdale/trillian,Martin2112/trillian,google/trillian,AlCutter/trillian,RJPercival/trillian,AlCutter/trillian