Better error handling in queryCS for akaros