Skip to content

Commit

Permalink
Add error handling to dns-resolver example
Browse files Browse the repository at this point in the history
  • Loading branch information
igorw committed Jan 30, 2013
1 parent f6bdbe1 commit 21286e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/dns-resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
->resolve($domain)
->then(function ($ip) {
echo "Host: $ip\n";
}, function ($e) {
echo "Error: {$e->getMessage()}\n";
});

echo "Resolving domain $domain...\n";
Expand Down

0 comments on commit 21286e2

Please sign in to comment.