Actually, this is a better way to handle this error.