Fossil SCM

Make the error message on schema version mismatch less confusing.

joerg 2011-03-24 03:22 trunk
Commit 4a2019ddd08c8b63295710d65b9efc40fd478a60
1 file changed +2 -1
+2 -1
--- src/db.c
+++ src/db.c
@@ -920,11 +920,12 @@
920920
** issue a fatal error and die.
921921
*/
922922
void db_verify_schema(void){
923923
if( db_schema_is_outofdate() ){
924924
fossil_warning("incorrect repository schema version");
925
- fossil_warning("you have version \"%s\" but you need version \"%s\"",
925
+ fossil_warning("your repository has schema version \"%s\" "
926
+ "but this binary expects version \"%s\"",
926927
db_get("aux-schema",0), AUX_SCHEMA);
927928
fossil_fatal("run \"fossil rebuild\" to fix this problem");
928929
}
929930
}
930931
931932
--- src/db.c
+++ src/db.c
@@ -920,11 +920,12 @@
920 ** issue a fatal error and die.
921 */
922 void db_verify_schema(void){
923 if( db_schema_is_outofdate() ){
924 fossil_warning("incorrect repository schema version");
925 fossil_warning("you have version \"%s\" but you need version \"%s\"",
 
926 db_get("aux-schema",0), AUX_SCHEMA);
927 fossil_fatal("run \"fossil rebuild\" to fix this problem");
928 }
929 }
930
931
--- src/db.c
+++ src/db.c
@@ -920,11 +920,12 @@
920 ** issue a fatal error and die.
921 */
922 void db_verify_schema(void){
923 if( db_schema_is_outofdate() ){
924 fossil_warning("incorrect repository schema version");
925 fossil_warning("your repository has schema version \"%s\" "
926 "but this binary expects version \"%s\"",
927 db_get("aux-schema",0), AUX_SCHEMA);
928 fossil_fatal("run \"fossil rebuild\" to fix this problem");
929 }
930 }
931
932

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button