diff --git a/server/db/db.rs b/server/db/db.rs index a11c446..5f28c8a 100644 --- a/server/db/db.rs +++ b/server/db/db.rs @@ -2185,16 +2185,19 @@ fn get_boot_uuid() -> Result, Error> { pub(crate) fn check_schema_version(conn: &rusqlite::Connection) -> Result<(), Error> { let ver = get_schema_version(conn)?.ok_or_else(|| { format_err!( - "no such table: version. \ - If you are starting from an empty database, see README.md to \ - complete the installation. If you are starting from a database \ - that predates schema versioning, see guide/schema.md." + "no such table: version.\n\n\ + If you have created an empty database by hand, delete it and use `nvr init` \ + instead, as noted in the installation instructions: \ + \n\n\ + If you are starting from a database that predates schema versioning, see \ + ." ) })?; match ver.cmp(&EXPECTED_VERSION) { std::cmp::Ordering::Less => bail!( "Database schema version {} is too old (expected {}); \ - see upgrade instructions in guide/upgrade.md.", + see upgrade instructions in \ + .", ver, EXPECTED_VERSION ), diff --git a/server/src/cmds/run.rs b/server/src/cmds/run.rs index a414be0..26041e6 100644 --- a/server/src/cmds/run.rs +++ b/server/src/cmds/run.rs @@ -229,7 +229,7 @@ async fn inner(args: Args, shutdown_rx: base::shutdown::Receiver) -> Result