Modified error statement as per Subutai. Changed assert to Exception