diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-22 10:30:21 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-22 10:30:21 +0900 |
commit | b8db2e9bf3ae6479157e4419fe27600cccd443ed (patch) | |
tree | 3b1c4ab3fa4b81d1d529e84257eb49fd310a0e4a /connection.cpp | |
parent | 766f0cc7743724d830df30eca6899cad20ba1dc8 (diff) | |
download | libquotient-b8db2e9bf3ae6479157e4419fe27600cccd443ed.tar.gz libquotient-b8db2e9bf3ae6479157e4419fe27600cccd443ed.zip |
splitMediaId: better assertion failure message
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |