Added error message

Added exception because return nothing is hard to debug