summaryrefslogtreecommitdiff
path: root/src/trg-file-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-file-parser.c')
-rw-r--r--src/trg-file-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-file-parser.c b/src/trg-file-parser.c
index 582ee82..dc8de3a 100644
--- a/src/trg-file-parser.c
+++ b/src/trg-file-parser.c
@@ -113,8 +113,8 @@ trg_torrent_file *trg_parse_torrent_file(const gchar *filename)
be_node *top_node, *info_node, *name_node;
trg_torrent_file *ret = NULL;
- if (g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
- g_error("%s does not exist", filename);
+ if (!g_file_test(filename, G_FILE_TEST_IS_REGULAR)) {
+ g_message("%s does not exist", filename);
return NULL;
}