Fossil SCM

Change two instances of fossil_panic() into fossil_fatal().

drh 2018-08-07 13:20 UTC forum-v2
Commit 342bd06b6a9a85f07ef0b3216a48285bb37b7842d00e3a4c0aa3f9d307c6a414
1 file changed +2 -2
+2 -2
--- src/db.c
+++ src/db.c
@@ -1718,13 +1718,13 @@
17181718
if( (bFlags & OPEN_OK_NOT_FOUND)==0 ){
17191719
#ifdef FOSSIL_ENABLE_JSON
17201720
g.json.resultCode = FSL_JSON_E_DB_NOT_FOUND;
17211721
#endif
17221722
if( nArgUsed==0 ){
1723
- fossil_panic("use --repository or -R to specify the repository database");
1723
+ fossil_fatal("use --repository or -R to specify the repository database");
17241724
}else{
1725
- fossil_panic("specify the repository name as a command-line argument");
1725
+ fossil_fatal("specify the repository name as a command-line argument");
17261726
}
17271727
}
17281728
}
17291729
17301730
/*
17311731
--- src/db.c
+++ src/db.c
@@ -1718,13 +1718,13 @@
1718 if( (bFlags & OPEN_OK_NOT_FOUND)==0 ){
1719 #ifdef FOSSIL_ENABLE_JSON
1720 g.json.resultCode = FSL_JSON_E_DB_NOT_FOUND;
1721 #endif
1722 if( nArgUsed==0 ){
1723 fossil_panic("use --repository or -R to specify the repository database");
1724 }else{
1725 fossil_panic("specify the repository name as a command-line argument");
1726 }
1727 }
1728 }
1729
1730 /*
1731
--- src/db.c
+++ src/db.c
@@ -1718,13 +1718,13 @@
1718 if( (bFlags & OPEN_OK_NOT_FOUND)==0 ){
1719 #ifdef FOSSIL_ENABLE_JSON
1720 g.json.resultCode = FSL_JSON_E_DB_NOT_FOUND;
1721 #endif
1722 if( nArgUsed==0 ){
1723 fossil_fatal("use --repository or -R to specify the repository database");
1724 }else{
1725 fossil_fatal("specify the repository name as a command-line argument");
1726 }
1727 }
1728 }
1729
1730 /*
1731

Keyboard Shortcuts

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