Give a slightly friendlier error if no powermate device is found on startup.
git-svn-id: svn://localhost/ardour2/branches/3.0@5626 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
285b59a7b9
commit
d2c95b3ffb
@ -101,7 +101,11 @@ PowermateControlProtocol::probe ()
|
||||
int port = find_powermate( O_RDONLY );
|
||||
|
||||
if (port < 0) {
|
||||
printf ("powermate: Opening of powermate failed - %s\n", strerror(errno));
|
||||
if (errno == ENOENT) {
|
||||
printf ("ardour: [INFO]: Powermate device not found; perhaps you have no powermate connected.\n");
|
||||
} else {
|
||||
printf ("powermate: Opening of powermate failed - %s\n", strerror(errno));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user