libls.sh: Better failure diagnostic.

The build daemon at NixOS reports a failure
where better reporting on our side would help.