changed error messsages when printing labels from "error" to "warn"