print error message if base64 can't be decoded
authorDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Mon, 10 Dec 2018 21:56:40 +0000 (22:56 +0100)
committerDavid Kaufmann <david.kaufmann@student.tuwien.ac.at>
Mon, 10 Dec 2018 21:56:40 +0000 (22:56 +0100)
camunda-overlay/sentiment-analysis.bpmn

index 101e7ecccbaf2cfec6207d0b56c81a93c2973fcb..eb07945ee4994a9187f6de511a2b8b9a543eacc4 100644 (file)
@@ -142,7 +142,7 @@ function getLens (b64) {
   var len = b64.length
 
   if (len % 4 &gt; 0) {
-    throw new Error('Invalid string. Length must be a multiple of 4')
+    throw new Error('Invalid string. Length must be a multiple of 4: '+b64)
   }
 
   // Trim off extra bytes after placeholder bytes are found