Adding proper error/success formatting for chaincode query
Adding proper error/success formatting for chaincode query

Adding proper error and success response formatting for chaincode
query inside of processChaincodeInvokeOrQuery.

Signed-off-by: Anna D Derbakova <cb07a20babc77f39c5c49d18f5b5475e27c41c83@us.ibm.com>

srderson/fabric,binhn/obc-peer,tuand27613/fabric,hyperledger-archives/fabric,ahuachen/fabric,openblockchain/obc-peer,bburgdave/fabric,tuand27613/obc-peer,adecaro/fabric,tuand27613/fabric,tuand27613/fabric,srderson/fabric,gongsu832/fabric,ariccy/fabric,popldo/fabric,hyperledger-archives/fabric,andresgaragiola/fabric,adecaro/fabric,jjjjibm/fabric,gennadylaventman/fabric,JonathanLevi/fabric,ariccy/fabric,srderson/fabric,angrbrd/fabric,murali-katipalli-dtcc/fabric,bren3582/fabric,ariccy/fabric,srderson/fabric,ariccy/fabric,popldo/fabric,hyperledger-archives/fabric,itp4IBM/fabric,gromeroar/fabric,jjjjibm/fabric,adecaro/fabric,gromeroar/fabric,ariccy/fabric,isghe/obc-peer,JonathanLevi/fabric,ahuachen/fabric,rameshthoomu/obc-peer,gongsu832/fabric,ahuachen/fabric,andresgaragiola/fabric,popldo/fabric,binhn/obc-peer,andresgaragiola/fabric,bburgdave/fabric,itp4IBM/fabric,gongsu832/fabric,rameshthoomu/obc-peer,openblockchain/obc-peer,jjjjibm/fabric,gennadylaventman/fabric,popldo/fabric,gromeroar/fabric,rameshthoomu/obc-peer,tuand27613/obc-peer,ariccy/fabric,isghe/obc-peer,JonathanLevi/fabric,angrbrd/fabric,ariccy/fabric,ahuachen/fabric,tuand27613/obc-peer,JonathanLevi/fabric,tuand27613/fabric,hyperledger-archives/fabric,bren3582/fabric,gromeroar/fabric,gromeroar/fabric,adecaro/fabric,angrbrd/fabric,andresgaragiola/fabric,bren3582/fabric,bren3582/fabric,popldo/fabric,andresgaragiola/fabric,gennadylaventman/fabric,popldo/fabric,bburgdave/fabric,bren3582/fabric,gongsu832/fabric,murali-katipalli-dtcc/fabric,gromeroar/fabric,angrbrd/fabric,srderson/fabric,popldo/fabric,tuand27613/fabric,jjjjibm/fabric,itp4IBM/fabric,isghe/obc-peer,murali-katipalli-dtcc/fabric,angrbrd/fabric,binhn/obc-peer,tuand27613/fabric,bburgdave/fabric,gennadylaventman/fabric,hyperledger-archives/fabric,bren3582/fabric,bburgdave/fabric,tuand27613/fabric,murali-katipalli-dtcc/fabric,gennadylaventman/fabric,adecaro/fabric,jjjjibm/fabric,gennadylaventman/fabric,itp4IBM/fabric,jjjjibm/fabric,angrbrd/fabric,adecaro/fabric,murali-katipalli-dtcc/fabric,ahuachen/fabric,JonathanLevi/fabric,isghe/obc-peer,andresgaragiola/fabric,srderson/fabric,JonathanLevi/fabric,jjjjibm/fabric,itp4IBM/fabric,JonathanLevi/fabric,adecaro/fabric,angrbrd/fabric,bren3582/fabric,murali-katipalli-dtcc/fabric,hyperledger-archives/fabric,itp4IBM/fabric,isghe/obc-peer,gennadylaventman/fabric,hyperledger-archives/fabric,srderson/fabric,gromeroar/fabric,murali-katipalli-dtcc/fabric,ahuachen/fabric,andresgaragiola/fabric,itp4IBM/fabric,ahuachen/fabric,openblockchain/obc-peer