From 36db5ddad0183c21444246d5ab55a6b44de8b529 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 935546b1..68f23042 100644 --- a/connection.cpp +++ b/connection.cpp @@ -302,7 +302,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