]> git.e2factory.org Git - e2factory.git/commitdiff
hash: correct error message
authorTobias Ulmer <tu@emlix.com>
Thu, 9 Apr 2015 13:05:47 +0000 (15:05 +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/hash.lua

index a4835616493fab5b956ba7b99d81725461eebf26..dc1dcda10a504aff314dedc37f1df4ec615ba43f 100644 (file)
@@ -199,7 +199,7 @@ function hash.hash_append(hc, data)
     if #hc._data >= 64*1024 then
         rc, errstring = lsha1.update(hc._ctx, hc._data)
         if not rc then
-            error(err.new("%s", re))
+            error(err.new("%s", errstring))
         end
         hc._data = ""
     end