]> git.e2factory.org Git - e2factory.git/commitdiff
e2lib.join: verbose assert
authorTobias Ulmer <tu@emlix.com>
Fri, 16 Sep 2016 16:07:50 +0000 (18:07 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2lib.lua

index e06c7990ff616f0ae1e5c100411e9cca174e3c5a..2df095d7df9b9da988e8d2e5c6688c4664a97bf4 100644 (file)
@@ -758,7 +758,7 @@ function e2lib.join(p1, p2, ...)
 
     for i=1,#args do
         component = args[i]
-        assert(type(component) == "string")
+        assert(type(component) == "string", "join() arg not a string")
 
         if sepnext then
             -- If the previous or next component already