raise a runtime error instead of returning an error code