outputs actual error in stderr

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14342 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-10-10 18:30:14 +00:00
parent 276ac902b7
commit b67b9d8c87

View File

@ -190,8 +190,10 @@ MediaAddonServer::ReadyToRun()
// register it with the server, and make it the default SYSTEM_TIME_SOURCE
BMediaNode *ts = new SystemTimeSource;
status_t result = mediaroster->RegisterNode(ts);
if (result != B_OK)
if (result != B_OK) {
fprintf(stderr, "Can't register system time source : %s\n", strerror(result));
debugger("Can't register system time source");
}
if (ts->ID() != NODE_SYSTEM_TIMESOURCE_ID)
debugger("System time source got wrong node ID");
media_node node = ts->Node();