improved error handling
This commit is contained in:
parent
04212c3d55
commit
6713362a5f
2
Doxyfile
2
Doxyfile
|
@ -901,7 +901,7 @@ EXCLUDE_PATTERNS =
|
|||
# Note that the wildcards are matched against the file with absolute path, so to
|
||||
# exclude all test directories use the pattern */test/*
|
||||
|
||||
EXCLUDE_SYMBOLS = CALLOC exit_failure
|
||||
EXCLUDE_SYMBOLS = CALLOC lprintf
|
||||
|
||||
# The EXAMPLE_PATH tag can be used to specify one or more files or directories
|
||||
# that contain example code fragments that are included (see the \include
|
||||
|
|
|
@ -32,10 +32,10 @@ static pthread_mutex_t link_lock;
|
|||
/**
|
||||
* \brief Create the root linktable for single file mode
|
||||
*/
|
||||
static LinkTable *single_LinkTable_new(const char *fn)
|
||||
static LinkTable *single_LinkTable_new(const char *url)
|
||||
{
|
||||
char *ptr = strrchr(fn, '/');
|
||||
int dir_len = ptr - fn;
|
||||
char *ptr = strrchr(url, '/');
|
||||
int dir_len = ptr - url;
|
||||
char *dir_name = CALLOC(dir_len + 1, sizeof(char));
|
||||
free(dir_name);
|
||||
return NULL;
|
||||
|
@ -546,7 +546,7 @@ LinkTable *LinkTable_new(const char *url)
|
|||
*/
|
||||
if (CACHE_SYSTEM_INIT) {
|
||||
if (LinkTable_disk_save(linktbl, unescaped_path)) {
|
||||
exit_failure();
|
||||
lprintf(error, "Failed to save the LinkTable!\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue