From 98561e09196954a9f8ef7317fba69b2ef4b4db2a Mon Sep 17 00:00:00 2001 From: Qiang Yiting Date: Wed, 18 Apr 2018 00:32:41 +0800 Subject: [PATCH] FAB-9552 Fix access of an un-declared variable Change-Id: Ia518b5733e69a999a304d251390999fa1291b4eb Signed-off-by: Qiang Yiting --- fabcar/invoke.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabcar/invoke.js b/fabcar/invoke.js index 1c0270aca1..221e2c00a4 100644 --- a/fabcar/invoke.js +++ b/fabcar/invoke.js @@ -148,7 +148,7 @@ Fabric_Client.newDefaultKeyValueStore({ path: store_path if (results && results[0] && results[0].status === 'SUCCESS') { console.log('Successfully sent transaction to the orderer.'); } else { - console.error('Failed to order the transaction. Error code: ' + response.status); + console.error('Failed to order the transaction. Error code: ' + results[0].status); } if(results && results[1] && results[1].event_status === 'VALID') {