Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 1872:09a737a6bf36
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Dec 2015 09:48:34 +0100 |
parents | e8146c9c28a4 9af3b492b010 |
children | b1291df2f780 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Mon Dec 07 09:46:37 2015 +0100 +++ b/OrthancServer/main.cpp Mon Dec 07 09:48:34 2015 +0100 @@ -835,7 +835,17 @@ LOG(WARNING) << "Upgrading the database from schema version " << currentVersion << " to " << ORTHANC_DATABASE_VERSION; - database.Upgrade(ORTHANC_DATABASE_VERSION, storageArea); + + try + { + database.Upgrade(ORTHANC_DATABASE_VERSION, storageArea); + } + catch (OrthancException&) + { + LOG(ERROR) << "Unable to run the automated upgrade, please use the replication instructions: " + << "https://orthanc.chu.ulg.ac.be/book/users/replication.html"; + throw; + } // Sanity check currentVersion = database.GetDatabaseVersion();