From 501616e980c8f9751d6b520fd2a69de1fe7b77cf Mon Sep 17 00:00:00 2001 From: Michael Zhou Date: Fri, 8 Apr 2022 22:11:07 +0800 Subject: [PATCH] fix: address confusing error message with SetOrder* functions (#11571) (cherry picked from commit ce0361d7141ca45d6ba0da4d4718ec2dc6a54404) --- types/module/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/module/module.go b/types/module/module.go index 4128d781adfc..e38e6bc78fc0 100644 --- a/types/module/module.go +++ b/types/module/module.go @@ -368,7 +368,7 @@ func (m *Manager) assertNoForgottenModules(setOrderFnName string, moduleNames [] } if len(missing) != 0 { panic(fmt.Sprintf( - "%s: all modules must be defined when setting SetOrderMigrations, missing: %v", setOrderFnName, missing)) + "%s: all modules must be defined when setting %s, missing: %v", setOrderFnName, setOrderFnName, missing)) } }