We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0424557 commit d5cfe17Copy full SHA for d5cfe17
README.md
@@ -44,9 +44,9 @@ const ipinfo = await ipinfoWrapper.lookupIp("1.1.1.1");
44
#### Best practices
45
46
Each `lookup` method will throw an error when the lookup does not complete
47
-successfully. A program that performs a lookup should catch errors and return
48
-a default value. For example, if your program is performing a lookup to find the
49
-country code of an IP:
+successfully. A program that performs a lookup should catch errors unless it is
+desirable for the error to bubble up. For example, if your program is performing
+a lookup to find the country code of an IP:
50
51
```typescript
52
const ipinfo = await ipinfoWrapper.lookupIp("1.1.1.1").catch(error => null);
0 commit comments