Previously error handling was done using a string matching method, as that was all KNewStuffCore offered. A newly modified KNewStuffCore error signal (found in D16665) gives much better opportunities to handle error conditions, and this patch modifies the old functionality in Discover's KNewStuff backend to take advantage of this.
BUG: 395937