Add exception in read_temp
Improve error messages in exceptions