How to get proper error messages in Lock widget?

But the problem is that the lock widget ALWAYS shows the same message, no matter the error: “WE’RE SORRY, SOMETHING WENT WRONG WHEN ATTEMPTING TO LOG IN”. Customizing the error message type doesn’t work.