summaryrefslogtreecommitdiff
path: root/src/nslcd_proto/io.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:34:21 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:34:21 -0600
commit6b94a9b6588112328fa2738b1c149b48908f5029 (patch)
tree4e7e11ad85997855af38b219a1b8193e1e4dab88 /src/nslcd_proto/io.go
parent066fe52728294bf764ccb89750eecae634a4c1a6 (diff)
clean up logging
Diffstat (limited to 'src/nslcd_proto/io.go')
-rw-r--r--src/nslcd_proto/io.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nslcd_proto/io.go b/src/nslcd_proto/io.go
index 321a87c..87783ac 100644
--- a/src/nslcd_proto/io.go
+++ b/src/nslcd_proto/io.go
@@ -70,7 +70,7 @@ func write(fd io.Writer, data interface{}) {
write(fd, v.Field(i).Interface())
}
default:
- panic("Invalid structure for NSLCD protocol data")
+ panic(fmt.Sprintf("Invalid structure to write NSLCD protocol data from: %T ( %#v )", data, data))
}
}
}
@@ -139,7 +139,7 @@ func read(fd io.Reader, data interface{}) {
read(fd, v.Field(i).Interface())
}
default:
- panic("Invalid structure for NSLCD protocol data")
+ panic(fmt.Sprintf("The argument to nslcd_proto.read() must be a pointer: %T ( %#v )", data, data))
}
}
}