Working on better output when query execution fails.