summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-16 15:48:35 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-16 15:48:35 +0200
commit7cbb9bb1284f09a9c55bb42785cc21f37900d3e0 (patch)
tree15d21114df0bb268ddbcf479d042246f5c2885bd
parenteb8d1170197b7146b20035e73fdd4c10ee3e9991 (diff)
efa: parse_content: Print skipped infos in debug mode
-rwxr-xr-xbin/efa3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index 04b853b..3a4af9f 100755
--- a/bin/efa
+++ b/bin/efa
@@ -58,7 +58,8 @@ sub parse_content($) {
# If the first field is not a time we've got some additional information.
# Sadly, this script does not parse it yet, so it's ignored
until ($raw->[$offer]->[$offset] =~ /^\d+:\d+$/) {
- last unless exists($raw->[$offer]->[++$offset]);
+ printf("# lost information: %s\n", $raw->[$offer]->[$offset]) if ($debug);
+ last unless (exists($raw->[$offer]->[++$offset]));
}
$return->[$offer]->[$i] = {
deptime => $raw->[$offer]->[$offset],