Fixes failing unit tests due to throwing Error instead of message now.