Skip to content

Commit 3557ca4

Browse files
authored
Merge pull request #93 from zipizap/ReadmeImprovement
Readme improved with error-checking
2 parents 4d1c12e + 787329c commit 3557ca4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ func main() {
3838
return
3939
}
4040

41-
client.Get("/me", &me)
41+
err = client.Get("/me", &me)
42+
if err != nil {
43+
fmt.Printf("Error: %q\n", err)
44+
return
45+
}
4246
fmt.Printf("Welcome %s!\n", me.Firstname)
4347
}
4448
```

0 commit comments

Comments
 (0)