aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-05-23 18:32:18 -0700
committerJoe Richey joerichey@google.com <joerichey@google.com>2017-05-31 12:33:58 -0700
commit4b6d0ce14b8553a93b2d14fd858dfd35bfd61104 (patch)
tree39dd221bd5f7118537ae33c43ea23e4d4af65c86 /cmd
parentbd6a1acc8c6b6c03f999558baa4aab464417548d (diff)
util: better handing of custom errors
This commit changes how we handle InvalidInput and System errors. Instead of having formatting functions, the now just wrap a string and should be created with fmt.Sprintf or similar. We also move all of the error related code into a single place. Finally, the utils package gets additional functionality with MinInt64 and GetUsername, and the UnderlyingError function gets better logging. Note that this will break packages that depend on it. For instance, metadata and crypto currently do not build. This is fixed in a later commit. Change-Id: I819e4d1970604456a5b4b6a7c86426f180a6d092
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions