query error messages

Signed-off-by: Craig Sullivan <craig@melbourne-systems.com>