How to get proper error messages in Lock widget?