db/proxy: make the base class of LibmpdclientError public

If the base class is not accessible, the "catching" the base class
won't work.  This caused the fatal error:

 terminate called after throwing an instance of 'LibmpdclientError'
This commit is contained in:
Max Kellermann
2017-01-23 18:28:40 +01:00
parent 5e93cfdd9e
commit c6f89c42b2
2 changed files with 3 additions and 1 deletions

View File

@@ -46,7 +46,7 @@
#include <string>
#include <list>
class LibmpdclientError final : std::runtime_error {
class LibmpdclientError final : public std::runtime_error {
enum mpd_error code;
public: