Changeset 730

Show
Ignore:
Timestamp:
01/05/07 21:54:53 (2 years ago)
Author:
oxff
Message:

nepenthes-core: more descriptive error message for file check

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp

    r724 r730  
    4444#include <sys/utsname.h> 
    4545#include <ctype.h> 
     46#include <errno.h> 
     47#include <string.h> 
    4648 
    4749#ifdef HAVE_LIBCAP 
     
    668670                if ( stat((const char*)argv[opti],&fileinfo) != 0 ) 
    669671                { 
    670                         printf("failed\n"); 
     672                        printf("Could not stat %s: %s", (const char*)argv[opti], strerror(errno)); 
    671673                        return -1; 
    672674                }