13
0

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:
Carl Hetherington 2009-09-03 01:06:45 +00:00
parent 285b59a7b9
commit d2c95b3ffb

View File

@ -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;
}