diff options
author | Chris Robinson <[email protected]> | 2021-04-20 22:03:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-04-20 22:03:56 -0700 |
commit | 8f8e9aa91395901f3714023b889455a2e1859d46 (patch) | |
tree | d919ec5dc5e2a535273482ec21bac8703a15ac46 /alc | |
parent | 37730927efe488e63114b5c665bd53e9ee5b478c (diff) |
Print an error when starting the backend fails
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 5ec0ab11..945f322a 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2255,6 +2255,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) device->Flags.set(DeviceRunning); } catch(al::backend_exception& e) { + ERR("%s\n", e.what()); device->handleDisconnect("%s", e.what()); return ALC_INVALID_DEVICE; } @@ -3888,6 +3889,7 @@ START_API_FUNC dev->Flags.set(DeviceRunning); } catch(al::backend_exception& e) { + ERR("%s\n", e.what()); dev->handleDisconnect("%s", e.what()); alcSetError(dev.get(), ALC_INVALID_DEVICE); } @@ -4097,6 +4099,7 @@ START_API_FUNC dev->Flags.set(DeviceRunning); } catch(al::backend_exception& e) { + ERR("%s\n", e.what()); dev->handleDisconnect("%s", e.what()); alcSetError(dev.get(), ALC_INVALID_DEVICE); } @@ -4205,6 +4208,7 @@ START_API_FUNC dev->Flags.set(DeviceRunning); } catch(al::backend_exception &be) { + ERR("%s\n", be.what()); dev->handleDisconnect("%s", be.what()); } } |