aboutsummaryrefslogtreecommitdiff
path: root/devel/nmbug
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2016-01-01 22:08:01 -0800
committerDavid Bremner <david@tethera.net>2016-01-07 09:15:35 -0400
commita07cafae00fa18b1a2182b5ba6db405d79e787c5 (patch)
treea735cf6a3da54cecd18e8b8cfa33646d93a3bd29 /devel/nmbug
parent570c0aeb40bd0c3af8174624a55e968f62c44f09 (diff)
nmbug-status: Avoid hard-coded filename in error message
We already have a 'filename' variable with the name, so stay DRY and use that variable here. Also fix a missing-whitespace error from bed8b674 (nmbug-status: Clarify errors for illegible configs, 2014-05-10), wrapping on the sentence to match similar error-generation earlier in this function.
Diffstat (limited to 'devel/nmbug')
-rwxr-xr-xdevel/nmbug/nmbug-status6
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status
index b36b6ad3..22e3b5b5 100755
--- a/devel/nmbug/nmbug-status
+++ b/devel/nmbug/nmbug-status
@@ -109,9 +109,9 @@ def read_config(path=None, encoding=None):
status = p.wait()
if status != 0:
raise ConfigError(
- ("Missing status-config.json in branch '{branch}' of"
- '{nmbgit}. Add the file or explicitly set --config.'
- ).format(branch=branch, nmbgit=nmbhome))
+ ("Missing {filename} in branch '{branch}' of {nmbgit}. "
+ 'Add the file or explicitly set --config.'
+ ).format(filename=filename, branch=branch, nmbgit=nmbhome))
config_json = config_bytes.decode(encoding)
try: