yanglint BUGFIX some of the error messages are actually just warnings
diff --git a/tools/lint/configuration.c b/tools/lint/configuration.c
index 6e684a8..fe37f6d 100644
--- a/tools/lint/configuration.c
+++ b/tools/lint/configuration.c
@@ -53,7 +53,7 @@
if (ret == -1) {
if (errno == ENOENT) {
/* directory does not exist */
- YLMSG_E("Configuration directory \"%s\" does not exist, creating it.\n", yl_dir);
+ YLMSG_W("Configuration directory \"%s\" does not exist, creating it.\n", yl_dir);
if (mkdir(yl_dir, 00700)) {
YLMSG_E("Configuration directory \"%s\" cannot be created (%s).\n", yl_dir, strerror(errno));
free(yl_dir);
@@ -87,7 +87,7 @@
sprintf(history_file, "%s/history", yl_dir);
if (access(history_file, F_OK) && (errno == ENOENT)) {
- YLMSG_E("No saved history.\n");
+ YLMSG_W("No saved history.\n");
} else if (linenoiseHistoryLoad(history_file)) {
YLMSG_E("Failed to load history.\n");
}