same as package errors, but can format string