Show More
@@ -41,10 +41,9 b' def _getcheckunknownconfig(repo, section' | |||||
41 | valid = [b'abort', b'ignore', b'warn'] |
|
41 | valid = [b'abort', b'ignore', b'warn'] | |
42 | if config not in valid: |
|
42 | if config not in valid: | |
43 | validstr = b', '.join([b"'" + v + b"'" for v in valid]) |
|
43 | validstr = b', '.join([b"'" + v + b"'" for v in valid]) | |
44 | raise error.ConfigError( |
|
44 | msg = _(b"%s.%s not valid ('%s' is none of %s)") | |
45 | _(b"%s.%s not valid ('%s' is none of %s)") |
|
45 | msg %= (section, name, config, validstr) | |
46 | % (section, name, config, validstr) |
|
46 | raise error.ConfigError(msg) | |
47 | ) |
|
|||
48 | return config |
|
47 | return config | |
49 |
|
48 | |||
50 |
|
49 |
General Comments 0
You need to be logged in to leave comments.
Login now