ftdi_eeprom: (tomj) improved error output
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 7 Aug 2006 08:45:08 +0000 (08:45 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 7 Aug 2006 08:45:08 +0000 (08:45 +0000)
src/main.c

index fce51b7..1cd5efc 100644 (file)
@@ -134,7 +134,7 @@ int main(int argc, char *argv[]) {
 
            i = ftdi_usb_open(&ftdi, 0x0403, 0x6001);
            if (i != 0) {
-               printf("Sorry, unable to find FTDI USB chip\n");
+               printf("Error: %s\n", ftdi.error_str);
                exit (-1);
            }
        }