Skip to content

Commit 59e2582

Browse files
committed
Fix check required config value
1 parent 81cc92f commit 59e2582

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/mpcium/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ func maskString(s string) string {
405405
// Check required configuration values are present
406406
func checkRequiredConfigValues(appConfig *config.AppConfig) {
407407
// Show warning if we're using file-based config but no password is set
408-
if appConfig.BadgerPassword == "" {
408+
if viper.GetString("badger_password") == "" {
409409
logger.Fatal("Badger password is required", nil)
410410
}
411411

0 commit comments

Comments
 (0)