[#12] fixed top level constant warning message and raising errors in one line