Browse code

update error message

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1297 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2005/02/01 03:18:33
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Jan 31 19:15:48 CET 2005 (tk)
2
+---------------------------------
3
+  * libclamav/readdb.c: update error message
4
+
1 5
 Mon Jan 31 11:05:20 GMT 2005 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/mbox.c:	Empty lines should the end of the headers,
... ...
@@ -736,7 +736,7 @@ int cl_loaddb(const char *filename, struct cl_node **root, unsigned int *signo)
736 736
     }
737 737
 
738 738
     if(ret)
739
-	cli_errmsg("Malformed database file %s\n", filename);
739
+	cli_errmsg("Can't load %s: %s\n", filename, cl_strerr(ret));
740 740
 
741 741
     fclose(fd);
742 742
     return ret;