Fossil SCM
Make the error message on schema version mismatch less confusing.
Commit
4a2019ddd08c8b63295710d65b9efc40fd478a60
Parent
7fca007538fea65…
1 file changed
+2
-1
M
src/db.c
+2
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -920,11 +920,12 @@ | ||
| 920 | 920 | ** issue a fatal error and die. |
| 921 | 921 | */ |
| 922 | 922 | void db_verify_schema(void){ |
| 923 | 923 | if( db_schema_is_outofdate() ){ |
| 924 | 924 | 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\"", | |
| 926 | 927 | db_get("aux-schema",0), AUX_SCHEMA); |
| 927 | 928 | fossil_fatal("run \"fossil rebuild\" to fix this problem"); |
| 928 | 929 | } |
| 929 | 930 | } |
| 930 | 931 | |
| 931 | 932 |
| --- 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 |