Make an assert an exception instead