Error should be nil if err is nil