https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211501
The current locate error message is misleading.
was:
$ locate foobar
locate: `/var/db/locate.database': No such file or directory
now:
./locate foobar
locate: the locate database '/var/db/locate.database' does not exists.
To create a new database, please run the following command:
sudo /etc/periodic/weekly/310.locate
was:
$ locate foobar
locate: database too small: /var/db/locate.database
Run /usr/libexec/locate.updatedb
now:
./locate foobar
locate: the locate database '/var/db/locate.database' is less than 256 bytes large.
To create a new database, please run the following command:
sudo /etc/periodic/weekly/310.locate