Fix bug in sample code (missing error parameter)

As is, the code prints the error instead (which is often null, on a successful page load).