Better error messages.

Signed-off-by: ushi <ushi@porkbox.net>