Change error log text on ValueError