Error handling? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: Error handling? (/showthread.php?tid=53439) |
Error handling? - ultrabrutal - 2009-06-24 If for example a call to a function in the scraper fails (login error, server offline etc). How do I show this to the user. I've tried to do a hack where I write the error as a result from GetSearchResults (login error), but it does not show in XBMC - only in the ScraperXML tester. Spiff, how do I go about this? - spiff - 2009-06-24 uhm, error handling is uhrr, nonexistent it *should* error out if empty xml is returned, but it won't necessarily give ui feedback - ultrabrutal - 2009-06-24 that was what I was afraid of consider this a feature request then - ultrabrutal - 2009-06-24 This is my fake error handling for login errors: Code: <RegExp input="$$3" output="<results>\1</results>" dest="8"><RegExp input="$$1" output="<entity><title>Error returned from server</title><id>123456789</id><url>NA</url></entity><entity><title>\1</title><id>987654321</id><url>NA</url></entity>" dest="3"><expression repeat="no"><response status="failed">(.*?)</response></expression></RegExp><expression noclean="1" /></RegExp> ScraperXML test: shows this result from my scraper when invalid login: Code: <results> However this is not displayed in XBMC. Any idea why not? - ultrabrutal - 2009-06-26 No one has an idea? Ok, in that case... Spiff, where would be a good point to set a break point in the source as it must be a bug? |