diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-03-05 17:34:42 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-03-05 17:34:42 +0000 |
commit | 517946bdaa530050955956e50fb77cefe4d2bc15 (patch) | |
tree | ab4c427663a3d258eaa496b1894f0bd734539ad9 | |
parent | d99358cc4a6eadc1c7236d0f8d1de0261ef89869 (diff) |
BUILD : 1.7.8 (599) BUGS : N/A NOTES : Cleaned up debug message for Win32 users
git-svn-id: svn://svn.anope.org/anope/trunk@599 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@447 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | src/datafiles.c | 16 | ||||
-rw-r--r-- | version.log | 6 |
2 files changed, 20 insertions, 2 deletions
diff --git a/src/datafiles.c b/src/datafiles.c index 72c795952..f0e71068d 100644 --- a/src/datafiles.c +++ b/src/datafiles.c @@ -189,7 +189,21 @@ static dbFILE *open_db_write(const char *service, const char *filename, anope_cmd_global(NULL, "Can not back up %s database %s", service, filename); } - alog("errno %d %d %d", errno, ENOENT, EACCES); +#ifdef _WIN32 + if (debug) { + if (errno == ENOENT) { + alog("Error %d (ENOENT) : the file or directory does not exist", errno, filename); + } else if (errno == EACCES) { + alog("Error %d (EACCES) : error while attempting to access file", errno); + } else { + alog("Error %d", errno); + } + } +#else + if (debug) { + alog("Error %d", errno); + } +#endif errno = errno_save; log_perror("Can not back up %s database %s", service, filename); if (!NoBackupOkay) { diff --git a/version.log b/version.log index 015d7bc65..398983dd3 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="8" -VERSION_BUILD="598" +VERSION_BUILD="599" # $Log$ # +# BUILD : 1.7.8 (599) +# BUGS : N/A +# NOTES : Cleaned up debug message for Win32 users +# # BUILD : 1.7.8 (598) # BUGS : 310 # NOTES : Updated Unreal 3.2 token support. |