nld: improve the error messages