From 59d3693d691260f7c5f3719bb1fdd547e9f14cc6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 1 Jan 2009 21:20:42 +0100 Subject: tibtoa: A bit more/better error checking --- bin/tibtoa | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/tibtoa b/bin/tibtoa index 18fb865..fd7b74f 100755 --- a/bin/tibtoa +++ b/bin/tibtoa @@ -705,7 +705,7 @@ if (header_type($header) eq 'program') { $out = $special->{$char}->{$char2}; } else { printf STDERR ( - "Unknown byte 0x%02x at offset %d\n", + "Unknown byte 0x%02x at offset 0x%02x\n", $char, $offset - 1, ); @@ -754,4 +754,6 @@ if (header_type($header) eq 'program') { print ' | '; } } +} else { + print STDERR "file type not supported\n"; } -- cgit v1.2.3