aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/io.c b/io.c
index fdcf6b7b..57cdb581 100644
--- a/io.c
+++ b/io.c
@@ -2644,8 +2644,11 @@ find_input_parser(IOBUF *iop)
}
}
- if (ip != NULL)
- ip->take_control_of(& iop->public);
+ if (ip != NULL) {
+ if (! ip->take_control_of(& iop->public))
+ warning(_("input parser `%s' failed to open `%s'."),
+ ip->name, iop->public.name);
+ }
}
/* iop_alloc --- allocate an IOBUF structure for an open fd */