Merge pull request #814 from dl8dtl/notify-open-failure
Notify user about open failure Closes #813 (also closes #471)
This commit is contained in:
commit
5746bb2670
|
@ -1061,6 +1061,9 @@ int main(int argc, char * argv [])
|
||||||
|
|
||||||
rc = pgm->open(pgm, port);
|
rc = pgm->open(pgm, port);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
avrdude_message(MSG_INFO,
|
||||||
|
"%s: opening programmer \"%s\" on port \"%s\" failed\n",
|
||||||
|
progname, programmer, port);
|
||||||
exitrc = 1;
|
exitrc = 1;
|
||||||
pgm->ppidata = 0; /* clear all bits at exit */
|
pgm->ppidata = 0; /* clear all bits at exit */
|
||||||
goto main_exit;
|
goto main_exit;
|
||||||
|
|
Loading…
Reference in New Issue