diff --git a/local/list-unsafe-flat-objects.R b/local/list-unsafe-flat-objects.R index 1937f99..60649a2 100644 --- a/local/list-unsafe-flat-objects.R +++ b/local/list-unsafe-flat-objects.R @@ -141,11 +141,13 @@ if (nrow(rows) == 0L) { call. = FALSE ) } + # `count(*)` arrives as a double (or integer64), and `%d` rejects both, so the + # nothing-to-do path used to die on its own success message. message(sprintf( - "%s/%s: %d objects recorded, none unsafe. Nothing to repair.", + "%s/%s: %s objects recorded, none unsafe. Nothing to repair.", arch, codename, - total + format(as.numeric(total), scientific = FALSE) )) quit(status = 0) }