diff --git a/cmd/celestia/blob.go b/cmd/celestia/blob.go index 0b94fdcfdc..28d05b3b42 100644 --- a/cmd/celestia/blob.go +++ b/cmd/celestia/blob.go @@ -199,8 +199,7 @@ func formatData(data interface{}) interface{} { if reflect.TypeOf(data).Kind() == reflect.Slice { blobs, ok := data.([]*blob.Blob) if !ok { - fmt.Fprintln(os.Stderr, "could not cast to []blob.Blob") - os.Exit(1) + return data } result := make([]tempBlob, len(blobs)) @@ -217,8 +216,7 @@ func formatData(data interface{}) interface{} { b, ok := data.(*blob.Blob) if !ok { - fmt.Fprintln(os.Stderr, "could not cast to blob.Blob") - os.Exit(1) + return data } return tempBlob{ Namespace: b.Namespace(),