Fossil SCM

Give a fatal error, not a panic, if unable to open the database file.

drh 2019-01-15 19:41 trunk
Commit c0eca1f94ca69cb333c55ab3df8efc09af075dfa8aeb2357c7a1818a90c54870
1 file changed +1 -1
+1 -1
--- src/db.c
+++ src/db.c
@@ -86,11 +86,11 @@
8686
if( g.xferPanic && g.cgiOutput==1 ){
8787
cgi_reset_content();
8888
@ error Database\serror:\s%F(z)
8989
cgi_reply();
9090
}
91
- fossil_panic("Database error: %s", z);
91
+ fossil_fatal("Database error: %s", z);
9292
}
9393
9494
/*
9595
** All static variable that a used by only this file are gathered into
9696
** the following structure.
9797
--- src/db.c
+++ src/db.c
@@ -86,11 +86,11 @@
86 if( g.xferPanic && g.cgiOutput==1 ){
87 cgi_reset_content();
88 @ error Database\serror:\s%F(z)
89 cgi_reply();
90 }
91 fossil_panic("Database error: %s", z);
92 }
93
94 /*
95 ** All static variable that a used by only this file are gathered into
96 ** the following structure.
97
--- src/db.c
+++ src/db.c
@@ -86,11 +86,11 @@
86 if( g.xferPanic && g.cgiOutput==1 ){
87 cgi_reset_content();
88 @ error Database\serror:\s%F(z)
89 cgi_reply();
90 }
91 fossil_fatal("Database error: %s", z);
92 }
93
94 /*
95 ** All static variable that a used by only this file are gathered into
96 ** the following structure.
97

Keyboard Shortcuts

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