Replaced empty return with exception

Added exception because return nothing is hard to debug