Proper exception string to DrmObject::get_prop_value()
authorJyri Sarha <jsarha@ti.com>
Tue, 29 Sep 2015 09:04:45 +0000 (12:04 +0300)
committerJyri Sarha <jsarha@ti.com>
Tue, 29 Sep 2015 09:30:28 +0000 (12:30 +0300)
libkms++/drmobject.cpp

index ea5d59436b03a86918aab285ff8d1dcc22ace1c9..a79370ff37d9f4e1e166c57949e546fcb3f3d1c5 100644 (file)
@@ -64,6 +64,6 @@ uint64_t DrmObject::get_prop_value(const char *name) const
                        return m_prop_values.at(prop->id());
        }
 
-       throw invalid_argument("foo");
+       throw invalid_argument((string(name) + ": property not found").c_str());
 }
 }