Skip to content

Commit 12a5795

Browse files
committed
[FAB-11575] Fix collection config error msg
If collection config was not passed as part of the chaincode, the error message was not clear. This CR improves the error message, and provides corrective guidance, written to make sense for both the old lifecycle (instantiate) and new lifecycle (definition) terminology. Change-Id: I30044361972d84f41b91df11ac705c6c1b5a6b1d Signed-off-by: David Enyeart <enyeart@us.ibm.com>
1 parent cb33d95 commit 12a5795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/collection_val.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ type errCollConfigNotDefined struct {
105105
}
106106

107107
func (e *errCollConfigNotDefined) Error() string {
108-
return fmt.Sprintf("collection config not define for namespace [%s]", e.ns)
108+
return fmt.Sprintf("collection config not defined for chaincode [%s], pass the collection configuration upon chaincode definition/instantiation", e.ns)
109109
}

0 commit comments

Comments
 (0)