defer pagination error to EachPage callback
diff --git a/pagination/pager.go b/pagination/pager.go
index cc1c048..22d6d84 100644
--- a/pagination/pager.go
+++ b/pagination/pager.go
@@ -68,6 +68,9 @@
 // EachPage iterates over each page returned by a Pager, yielding one at a time to a handler function.
 // Return "false" from the handler to prematurely stop iterating.
 func (p Pager) EachPage(handler func(Page) (bool, error)) error {
+	if p.Err != nil {
+		return p.Err
+	}
 	currentURL := p.initialURL
 	for {
 		currentPage, err := p.fetchNextPage(currentURL)