summaryrefslogtreecommitdiff
path: root/nslcd_systemd/disable_nss_module.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-09-04 19:11:14 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-09-08 16:55:55 -0400
commit542c732b94e0a5e7c02fd209a60bd068dbbfa03b (patch)
tree780a49011174abc3f01f5110fc590d107989518a /nslcd_systemd/disable_nss_module.go
parent3e1d4d0c562ab99e5a81030a08d224e8174152b9 (diff)
nslcd_proto: BREAKING CHANGE: Rethink the panic strategy
nslcd_proto.Read() and .Write() panic() with any errors that they may need to emit. This made composition really simple, I was OK with it being against the normal Go style. But, I'm not happy with it anymore; have them return errors now. This leads us in to nslcd_server.HandleRequest() using those panics for control flow. Add a maybePanic(error) function to wrap all of the proto.Read() and proto.Write() calls to restore the panicing behavior.
Diffstat (limited to 'nslcd_systemd/disable_nss_module.go')
0 files changed, 0 insertions, 0 deletions