Fossil SCM
Give a fatal error, not a panic, if unable to open the database file.
Commit
c0eca1f94ca69cb333c55ab3df8efc09af075dfa8aeb2357c7a1818a90c54870
Parent
049813ac2061afb…
1 file changed
+1
-1
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -86,11 +86,11 @@ | ||
| 86 | 86 | if( g.xferPanic && g.cgiOutput==1 ){ |
| 87 | 87 | cgi_reset_content(); |
| 88 | 88 | @ error Database\serror:\s%F(z) |
| 89 | 89 | cgi_reply(); |
| 90 | 90 | } |
| 91 | - fossil_panic("Database error: %s", z); | |
| 91 | + fossil_fatal("Database error: %s", z); | |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /* |
| 95 | 95 | ** All static variable that a used by only this file are gathered into |
| 96 | 96 | ** the following structure. |
| 97 | 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_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 |