summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2013-08-29 09:53:31 +0200
committerVincent Untz <vuntz@gnome.org>2013-08-29 09:53:31 +0200
commita539c745051d7eeea6617a0512b71a649105de52 (patch)
tree2a589c80b4fdb3d9fc3b4859be8adf6a5ec24838
parent0b6e84cd489091b5fdaea6ffac0fc8a83589e8c7 (diff)
downloaddesktop-file-utils-a539c745051d7eeea6617a0512b71a649105de52.tar.gz
validator: Do not print two errors if file doesn't exist
-rw-r--r--src/validator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/validator.c b/src/validator.c
index e15f9f3..7a3ed7d 100644
--- a/src/validator.c
+++ b/src/validator.c
@@ -78,9 +78,7 @@ main (int argc, char *argv[])
if (!g_file_test (filename[i], G_FILE_TEST_IS_REGULAR)) {
g_printerr ("%s: file does not exist\n", filename[i]);
all_valid = FALSE;
- }
-
- if (!desktop_file_validate (filename[i], warn_kde, no_warn_deprecated, no_hints))
+ } else if (!desktop_file_validate (filename[i], warn_kde, no_warn_deprecated, no_hints))
all_valid = FALSE;
}