Add some error reporting into assert