From a182ef5a26d2c7920e5e62f6b9e95b91a0cc8605 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sat, 8 Jan 2022 22:02:25 +0100 Subject: [PATCH] Notify user if pgm->open() failes This is supposed to fix issue #813 --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index 6fd432ec..8bc051a9 100644 --- a/src/main.c +++ b/src/main.c @@ -1061,6 +1061,9 @@ int main(int argc, char * argv []) rc = pgm->open(pgm, port); if (rc < 0) { + avrdude_message(MSG_INFO, + "%s: opening programmer \"%s\" on port \"%s\" failed\n", + progname, programmer, port); exitrc = 1; pgm->ppidata = 0; /* clear all bits at exit */ goto main_exit;