Use consistent error messages for missing files.
Detect directories where an ordinary file is expected.
This commit is contained in:
parent
65ed7f0a33
commit
f24ddbddc5
15 changed files with 140 additions and 34 deletions
|
@ -341,8 +341,12 @@ display_archive (bfd *file)
|
|||
static void
|
||||
display_file (char *filename)
|
||||
{
|
||||
bfd *file = bfd_openr (filename, target);
|
||||
bfd *file;
|
||||
|
||||
if (get_file_size (filename) < 1)
|
||||
return;
|
||||
|
||||
file = bfd_openr (filename, target);
|
||||
if (file == NULL)
|
||||
{
|
||||
bfd_nonfatal (filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue