Change onDocumentError and onPageError functions so that they pass error object to callback functions
Change onDocumentError and onPageError functions so that they pass error object to callback functions

peergradeio/react-pdf,wojtekmaj/react-pdf,nnarhinen/react-pdf,nnarhinen/react-pdf,peergradeio/react-pdf,wojtekmaj/react-pdf,wojtekmaj/react-pdf