Include name of bad algorithm in exception message