diff options
author | James Booth <boothj5@gmail.com> | 2013-08-25 23:27:42 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-08-25 23:27:42 +0100 |
commit | d3cfeb9d5cac0520d43dbf35e36d9364c35a95e5 (patch) | |
tree | e262e193eadbb95717e6b04612ace879c7be5848 /src/profanity.c | |
parent | 3c39befa5e565bbc3cc13a0f060a8d7a18f735f1 (diff) | |
parent | e21bf8a18d682ae95699b6ddedf17aa870303a3c (diff) | |
download | profani-tty-d3cfeb9d5cac0520d43dbf35e36d9364c35a95e5.tar.gz |
Merge branch 'master' into windows
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/profanity.c b/src/profanity.c index 9c729ca1..4e9e887c 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -664,9 +664,15 @@ _create_directories(void) GString *logs_dir = g_string_new(xdg_data); g_string_append(logs_dir, "/profanity/logs"); - mkdir_recursive(themes_dir->str); - mkdir_recursive(chatlogs_dir->str); - mkdir_recursive(logs_dir->str); + if (!mkdir_recursive(themes_dir->str)) { + log_error("Error while creating directory %s", themes_dir->str); + } + if (!mkdir_recursive(chatlogs_dir->str)) { + log_error("Error while creating directory %s", chatlogs_dir->str); + } + if (!mkdir_recursive(logs_dir->str)) { + log_error("Error while creating directory %s", logs_dir->str); + } g_string_free(themes_dir, TRUE); g_string_free(chatlogs_dir, TRUE); |