Here and below: add something like "but was '%s'" to the end of the error message?