Fix map[] to blank
@@ -198,6 +198,12 @@ func join(items interface{}, separator string) string {
// each to its string representation, joins them together with the provided separator
// string and (if maxLen is >0) truncates the output at the given maximum length.
func joinAndTruncate(items interface{}, separator string, maxLen int) string {
+ // If the interface is empty, return an empty string. Otherwise, a raw map would
+ // show in the output.
+ if reflect.ValueOf(items).IsNil() {
+ return ""
+ }
+
if reflect.TypeOf(items).Kind() != reflect.Slice {
// Input wasn't a slice, convert it to one so we can take advantage of shared
// buffer/truncation logic...
