Fixed up error handling with sergis.error