presentError now takes an NSError as parameter.