[PATCH 02/10] srt_util: Make the 'configuration not found' message more informative

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Tom Zanussi <tom.zanussi@xxxxxxxxxxxxxxx>

When a command such as srt commit can't find an entry in srt.conf
corresponding to the current repo/branch, it errors out with:

  ERROR:root:Could not retrieve configuration

The message makes it sound like it couldn't find the srt.conf file,
but in reality that wasn't the problem - it couldn't find a group
matching repo/branch.  Add that detail to the message as such:

ERROR:root:Could not retrieve configuration
           stable-rt/linux-stable-rt/v3.18-rt-next from srt.conf

Signed-off-by: Tom Zanussi <tom.zanussi@xxxxxxxxxxxxxxx>
---
 srt_util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srt_util.py b/srt_util.py
index b572e03..c6099fd 100644
--- a/srt_util.py
+++ b/srt_util.py
@@ -97,7 +97,7 @@ def get_config():
         debug('Using configuration {0}'.format(config_name))
         config = read_config()[config_name]
     except:
-        error('Could not retrieve configuration')
+        error('Could not retrieve configuration {0} from srt.conf'.format(config_name))
         sys.exit(1)
 
     return config
-- 
2.14.1




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux