From 92ba8329ed23d309ea2f08843bae2ab4a362ddbe Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Mon, 10 Dec 2018 22:56:40 +0100 Subject: [PATCH] print error message if base64 can't be decoded --- camunda-overlay/sentiment-analysis.bpmn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camunda-overlay/sentiment-analysis.bpmn b/camunda-overlay/sentiment-analysis.bpmn index 101e7ec..eb07945 100644 --- a/camunda-overlay/sentiment-analysis.bpmn +++ b/camunda-overlay/sentiment-analysis.bpmn @@ -142,7 +142,7 @@ function getLens (b64) { var len = b64.length if (len % 4 > 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 -- 2.43.0