Better error logging in the climate.js file