From: David Kaufmann Date: Mon, 10 Dec 2018 21:56:40 +0000 (+0100) Subject: print error message if base64 can't be decoded X-Git-Tag: code-freeze~26^2~5 X-Git-Url: https://git.somenet.org/pub/jan/aic18.git/commitdiff_plain/92ba8329ed23d309ea2f08843bae2ab4a362ddbe?hp=b62a2b011322dc444560d00b5d3316dc780d7fc4 print error message if base64 can't be decoded --- 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