mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-03-24 06:24:15 -04:00
Before it would produce this incorrect message that told you to run the command you just ran: ``` $ nvr init --db-dir=/nonexistent/db E20211021 09:08:23.798 main moonfire_nvr] Exiting due to error: db dir /nonexistent/db not found; try running moonfire-nvr init caused by: ENOENT: No such file or directory ``` Now the same command produces the following: ``` $ nvr init --db-dir=/nonexistent/db E20211021 09:09:11.056 main moonfire_nvr] Exiting due to error: unable to create db dir /nonexistent/db caused by: ENOENT: No such file or directory ``` Add tests just for good measure.