print full error on failed queries