mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
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
1 changed files with 5 additions and 1 deletions
|
|
@ -101,7 +101,11 @@ PowermateControlProtocol::probe ()
|
||||||
int port = find_powermate( O_RDONLY );
|
int port = find_powermate( O_RDONLY );
|
||||||
|
|
||||||
if (port < 0) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue