Changeset 28089 for main/trunk/greenstone2/common-src
- Timestamp:
- 2013-08-19T23:50:02+12:00 (11 years ago)
- Location:
- main/trunk/greenstone2/common-src/src/gdbmedit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/src/gdbmedit/db2txt/db2txt.cpp
r27627 r28089 32 32 #else 33 33 #include <gdbm.h> 34 #include <errno.h> 34 35 #endif 35 36 … … 136 137 #endif 137 138 if (dbf == NULL) { 138 cerr << argv[0] << ": couldn't open " << dbname << endl; 139 exit (0); 139 cerr << argv[0] << ": Couldn't open '" << dbname << "'" << endl; 140 cerr << " " << gdbm_strerror(gdbm_errno) << endl; 141 cerr << " gdbm errno = " << gdbm_errno << endl; 142 #ifndef _MSC_VER 143 cerr << " OS errno = " << errno << endl; 144 perror("gdbm_open failed: "); 145 #endif 146 147 exit (-1); 140 148 } 141 149 -
main/trunk/greenstone2/common-src/src/gdbmedit/txt2db/txt2db.cpp
r26650 r28089 36 36 #else 37 37 #include <gdbm.h> 38 #include <errno.h> 38 39 #endif 39 40 … … 101 102 #endif 102 103 if (dbf == NULL) { 103 cerr << "couldn't create " << dbname << endl; 104 exit (0); 104 cerr << argv[0] << ": Couldn't create/open '" << dbname << "'" << endl; 105 cerr << " " << gdbm_strerror(gdbm_errno) << endl; 106 cerr << " gdbm errno = " << gdbm_errno << endl; 107 #ifndef _MSC_VER 108 cerr << " OS errno = " << errno << endl; 109 perror("gdbm_open failed: "); 110 #endif 111 112 exit (-1); 105 113 } 106 114
Note:
See TracChangeset
for help on using the changeset viewer.