diff --git a/libkms++/card.cpp b/libkms++/card.cpp
index 626c424be365610c07119489e5b6f7a1726ccf61..7aa8bdbfe90d3923f78b76ead8d099d55581c0d9 100644 (file)
--- a/libkms++/card.cpp
+++ b/libkms++/card.cpp
return prop;
}
- throw invalid_argument("foo");
+ throw invalid_argument(string("Card property ") + name + " not found");
}
Connector* Card::get_first_connected_connector() const
if (crtc && crtc->idx() == idx)
return crtc;
}
- throw invalid_argument("fob");
+ throw invalid_argument(string("Crtc #") + to_string(idx) + "not found");
}
Crtc* Card::get_crtc(uint32_t id) const { return dynamic_cast<Crtc*>(get_object(id)); }
}
if (!crtc)
- throw invalid_argument("fob");
+ throw invalid_argument(string("Connector #") +
+ to_string(conn->idx()) +
+ " has no possible crtcs");
outputs.push_back(Pipeline { crtc, conn });
}