Return error from cursor open.