I added some more checks and a more appropriate error message so people will find out more easy in future versions of the fog-client.