From b8db2e9bf3ae6479157e4419fe27600cccd443ed Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 22 Jan 2018 10:30:21 +0900 Subject: splitMediaId: better assertion failure message --- connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connection.cpp b/connection.cpp index 2bff6179..b6ede0af 100644 --- a/connection.cpp +++ b/connection.cpp @@ -303,7 +303,8 @@ inline auto splitMediaId(const QString& mediaId) { auto idParts = mediaId.split('/'); Q_ASSERT_X(idParts.size() == 2, __FUNCTION__, - "mediaId should have a form 'serverName/localMediaId' (without apostrophes)"); + ("mediaId:" + mediaId + + "doesn't look like \"serverName/localMediaId\"").toLatin1()); return idParts; } -- cgit v1.2.3