# HG changeset patch # User Sebastien Jodogne # Date 1449310937 -3600 # Node ID 9af3b492b0104a4a0f85854f40a05543a04a3991 # Parent c8877965d67d3c316a346c48341117701affa727 invitation to replicate if upgrade fails diff -r c8877965d67d -r 9af3b492b010 OrthancServer/main.cpp --- a/OrthancServer/main.cpp Fri Dec 04 16:18:46 2015 +0100 +++ b/OrthancServer/main.cpp Sat Dec 05 11:22:17 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();