Added error name to raise