R has the best error messages
Error in cut.default(iris$Sepal.Width, c(0, 3, 3.5, 4, 5), c("small", :
lengths of 'breaks' and 'labels' differ
Calls: cut -> cut.default
Except they seem to have to differ because e.g. 4 numbers for breaks describes 3 levels so it must be length(labels) = length(breaks) - 1...
"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko