I have no idea about the error, and haven’t looked, but I just wanted to say that I like this feature, and I think we should consider incorporating it in the reference application!
(Ideally we’d do this via an OWA in a way that lets other distros incorporate it too.)