Added more print out information, when log(I / I_ref) is negative, and raising errors.
This can help the user track back information to the error more easily.
Authored by: tlinnet 2014-08-29
Parent: [r25456]
Child: [r25458]