Signed-off-by: Lukáš Hrázký <[email protected]>
---
src/spice-streaming-agent.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
index 87e8fa3..0200e4a 100644
--- a/src/spice-streaming-agent.cpp
+++ b/src/spice-streaming-agent.cpp
@@ -356,7 +356,8 @@ do_capture(const string &streamport, FILE *f_log)
streamfd = open(streamport.c_str(), O_RDWR);
if (streamfd < 0)
// TODO was syslog(LOG_ERR, "Failed to open %s: %s\n", streamport,
strerror(errno));
- throw std::runtime_error("failed to open streaming device");
+ throw std::runtime_error("failed to open the streaming device (" +
+ streamport + "): " + string(strerror(errno)));
unsigned int frame_count = 0;
while (! quit) {
--
2.15.1
_______________________________________________
Spice-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/spice-devel