fix(config): correct migration command in error message to 'dumber config migrate'
- commit
- d051a8ea9838e608eddb2ac56ab1f0be3edc15ec
- author
- brice · · 2026-03-18 05:38 UTC
- parent
- e98349c
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
2 files · +7 -7
M internal/infrastructure/config/loader.go +1 -1
| @@ -172,7 +172,7 @@ func (m *Manager) checkLegacyFormat() error { | |||
| 172 | 172 | return fmt.Errorf( | |
| 173 | 173 | "config format outdated: [rendering], [performance], [privacy] sections " + | |
| 174 | 174 | "have moved to [engine]/[engine.webkit] — " + | |
| 175 | - | "run \"dumber migrate\" to update your config file", | |
| 175 | + | "run \"dumber config migrate\" to update your config file", | |
| 176 | 176 | ) | |
| 177 | 177 | } | |
| 178 | 178 | return nil | |
| @@ -172,7 +172,7 @@ func (m *Manager) checkLegacyFormat() error { | |||||
| 172 | return fmt.Errorf( | 172 | return fmt.Errorf( | ||
| 173 | "config format outdated: [rendering], [performance], [privacy] sections " + | 173 | "config format outdated: [rendering], [performance], [privacy] sections " + | ||
| 174 | "have moved to [engine]/[engine.webkit] — " + | 174 | "have moved to [engine]/[engine.webkit] — " + | ||
| 175 | - | "run \"dumber migrate\" to update your config file", | 175 | + | "run \"dumber config migrate\" to update your config file", |
| 176 | ) | 176 | ) | ||
| 177 | } | 177 | } | ||
| 178 | return nil | 178 | return nil | ||
M internal/infrastructure/config/loader_legacy_test.go +6 -6
| @@ -14,7 +14,7 @@ func TestCheckLegacyFormat_OldSectionsNoEngine_ReturnsError(t *testing.T) { | |||
| 14 | 14 | err := m.checkLegacyFormat() | |
| 15 | 15 | ||
| 16 | 16 | require.Error(t, err) | |
| 17 | - | require.Contains(t, err.Error(), "dumber migrate") | |
| 17 | + | require.Contains(t, err.Error(), "dumber config migrate") | |
| 18 | 18 | } | |
| 19 | 19 | ||
| 20 | 20 | func TestCheckLegacyFormat_OldSectionsWithEngine_ReturnsError(t *testing.T) { | |
| @@ -25,7 +25,7 @@ func TestCheckLegacyFormat_OldSectionsWithEngine_ReturnsError(t *testing.T) { | |||
| 25 | 25 | err := m.checkLegacyFormat() | |
| 26 | 26 | ||
| 27 | 27 | require.Error(t, err) | |
| 28 | - | require.Contains(t, err.Error(), "dumber migrate") | |
| 28 | + | require.Contains(t, err.Error(), "dumber config migrate") | |
| 29 | 29 | } | |
| 30 | 30 | ||
| 31 | 31 | func TestCheckLegacyFormat_FreshConfig_ReturnsNoError(t *testing.T) { | |
| @@ -43,7 +43,7 @@ func TestCheckLegacyFormat_DisableDmabuf_ReturnsError(t *testing.T) { | |||
| 43 | 43 | err := m.checkLegacyFormat() | |
| 44 | 44 | ||
| 45 | 45 | require.Error(t, err) | |
| 46 | - | require.Contains(t, err.Error(), "dumber migrate") | |
| 46 | + | require.Contains(t, err.Error(), "dumber config migrate") | |
| 47 | 47 | } | |
| 48 | 48 | ||
| 49 | 49 | func TestCheckLegacyFormat_PerformanceProfile_ReturnsError(t *testing.T) { | |
| @@ -53,7 +53,7 @@ func TestCheckLegacyFormat_PerformanceProfile_ReturnsError(t *testing.T) { | |||
| 53 | 53 | err := m.checkLegacyFormat() | |
| 54 | 54 | ||
| 55 | 55 | require.Error(t, err) | |
| 56 | - | require.Contains(t, err.Error(), "dumber migrate") | |
| 56 | + | require.Contains(t, err.Error(), "dumber config migrate") | |
| 57 | 57 | } | |
| 58 | 58 | ||
| 59 | 59 | func TestCheckLegacyFormat_PrivacyCookiePolicy_ReturnsError(t *testing.T) { | |
| @@ -63,7 +63,7 @@ func TestCheckLegacyFormat_PrivacyCookiePolicy_ReturnsError(t *testing.T) { | |||
| 63 | 63 | err := m.checkLegacyFormat() | |
| 64 | 64 | ||
| 65 | 65 | require.Error(t, err) | |
| 66 | - | require.Contains(t, err.Error(), "dumber migrate") | |
| 66 | + | require.Contains(t, err.Error(), "dumber config migrate") | |
| 67 | 67 | } | |
| 68 | 68 | ||
| 69 | 69 | func TestCheckLegacyFormat_RuntimePrefix_ReturnsError(t *testing.T) { | |
| @@ -73,5 +73,5 @@ func TestCheckLegacyFormat_RuntimePrefix_ReturnsError(t *testing.T) { | |||
| 73 | 73 | err := m.checkLegacyFormat() | |
| 74 | 74 | ||
| 75 | 75 | require.Error(t, err) | |
| 76 | - | require.Contains(t, err.Error(), "dumber migrate") | |
| 76 | + | require.Contains(t, err.Error(), "dumber config migrate") | |
| 77 | 77 | } | |
| @@ -14,7 +14,7 @@ func TestCheckLegacyFormat_OldSectionsNoEngine_ReturnsError(t *testing.T) { | |||||
| 14 | err := m.checkLegacyFormat() | 14 | err := m.checkLegacyFormat() | ||
| 15 | 15 | ||||
| 16 | require.Error(t, err) | 16 | require.Error(t, err) | ||
| 17 | - | require.Contains(t, err.Error(), "dumber migrate") | 17 | + | require.Contains(t, err.Error(), "dumber config migrate") |
| 18 | } | 18 | } | ||
| 19 | 19 | ||||
| 20 | func TestCheckLegacyFormat_OldSectionsWithEngine_ReturnsError(t *testing.T) { | 20 | func TestCheckLegacyFormat_OldSectionsWithEngine_ReturnsError(t *testing.T) { | ||
| @@ -25,7 +25,7 @@ func TestCheckLegacyFormat_OldSectionsWithEngine_ReturnsError(t *testing.T) { | |||||
| 25 | err := m.checkLegacyFormat() | 25 | err := m.checkLegacyFormat() | ||
| 26 | 26 | ||||
| 27 | require.Error(t, err) | 27 | require.Error(t, err) | ||
| 28 | - | require.Contains(t, err.Error(), "dumber migrate") | 28 | + | require.Contains(t, err.Error(), "dumber config migrate") |
| 29 | } | 29 | } | ||
| 30 | 30 | ||||
| 31 | func TestCheckLegacyFormat_FreshConfig_ReturnsNoError(t *testing.T) { | 31 | func TestCheckLegacyFormat_FreshConfig_ReturnsNoError(t *testing.T) { | ||
| @@ -43,7 +43,7 @@ func TestCheckLegacyFormat_DisableDmabuf_ReturnsError(t *testing.T) { | |||||
| 43 | err := m.checkLegacyFormat() | 43 | err := m.checkLegacyFormat() | ||
| 44 | 44 | ||||
| 45 | require.Error(t, err) | 45 | require.Error(t, err) | ||
| 46 | - | require.Contains(t, err.Error(), "dumber migrate") | 46 | + | require.Contains(t, err.Error(), "dumber config migrate") |
| 47 | } | 47 | } | ||
| 48 | 48 | ||||
| 49 | func TestCheckLegacyFormat_PerformanceProfile_ReturnsError(t *testing.T) { | 49 | func TestCheckLegacyFormat_PerformanceProfile_ReturnsError(t *testing.T) { | ||
| @@ -53,7 +53,7 @@ func TestCheckLegacyFormat_PerformanceProfile_ReturnsError(t *testing.T) { | |||||
| 53 | err := m.checkLegacyFormat() | 53 | err := m.checkLegacyFormat() | ||
| 54 | 54 | ||||
| 55 | require.Error(t, err) | 55 | require.Error(t, err) | ||
| 56 | - | require.Contains(t, err.Error(), "dumber migrate") | 56 | + | require.Contains(t, err.Error(), "dumber config migrate") |
| 57 | } | 57 | } | ||
| 58 | 58 | ||||
| 59 | func TestCheckLegacyFormat_PrivacyCookiePolicy_ReturnsError(t *testing.T) { | 59 | func TestCheckLegacyFormat_PrivacyCookiePolicy_ReturnsError(t *testing.T) { | ||
| @@ -63,7 +63,7 @@ func TestCheckLegacyFormat_PrivacyCookiePolicy_ReturnsError(t *testing.T) { | |||||
| 63 | err := m.checkLegacyFormat() | 63 | err := m.checkLegacyFormat() | ||
| 64 | 64 | ||||
| 65 | require.Error(t, err) | 65 | require.Error(t, err) | ||
| 66 | - | require.Contains(t, err.Error(), "dumber migrate") | 66 | + | require.Contains(t, err.Error(), "dumber config migrate") |
| 67 | } | 67 | } | ||
| 68 | 68 | ||||
| 69 | func TestCheckLegacyFormat_RuntimePrefix_ReturnsError(t *testing.T) { | 69 | func TestCheckLegacyFormat_RuntimePrefix_ReturnsError(t *testing.T) { | ||
| @@ -73,5 +73,5 @@ func TestCheckLegacyFormat_RuntimePrefix_ReturnsError(t *testing.T) { | |||||
| 73 | err := m.checkLegacyFormat() | 73 | err := m.checkLegacyFormat() | ||
| 74 | 74 | ||||
| 75 | require.Error(t, err) | 75 | require.Error(t, err) | ||
| 76 | - | require.Contains(t, err.Error(), "dumber migrate") | 76 | + | require.Contains(t, err.Error(), "dumber config migrate") |
| 77 | } | 77 | } | ||