DuckPAN/DDG: Make load error message work for 5.16

I was testing in 5.18, so it turns out that the messaging doesn't work on 5.16. Here's a more general update that works on both versions. CC @moollaza