Currently when the API cannot connect, the error message get output via drupal_set_message. This outputs the error, which is largely a developer issue, to the end user. The attached patch uses watchdog to send the error to the log instead. I welcome any feedback others might have.
Cheers, Leah
| Comment | File | Size | Author |
|---|---|---|---|
| google_books_error_output.patch | 1.21 KB | leahtard |
Comments
Comment #1
darrell_ulm commentedThanks @leahtard ! This is something to look at. May have some other changes to go in as well.
Comment #3
darrell_ulm commentedAh, interesting point, feel free to change a status to "needs review" and then the automated testing will evaluate the patch.
Was the patch written for the 7.x.1.x-dev or the 7.x.1.0 version? That could be the only issue. Feel free to resubmit if the error is obvious, and thank you.
Comment #5
darrell_ulm commentedOK, see what the issue might be:
Looks like the patch was made realitive to the module directory instead of the project (google_books) in this case.
I re-rolled the patch, tested it and committed it to the current 7.x dev HEAD here:
https://www.drupal.org/node/1372154/git-instructions/7.x-1.x/nonmaintainer
Thanks for the update, think we need to make a release for the changes. :)
Comment #8
darrell_ulm commentedFixed in release version 7.x-2.0