summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py b/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
index 2257a7143b..e2f61e4cb4 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
@@ -22,7 +22,7 @@ def _get_id_for_sourcetype(s):
22 for i in LayerSource.SOURCE_TYPE: 22 for i in LayerSource.SOURCE_TYPE:
23 if s == i[1]: 23 if s == i[1]:
24 return i[0] 24 return i[0]
25 raise Exception("Could not find definition for sourcetype " + s) 25 raise Exception("Could not find definition for sourcetype '%s'. Valid source types are %s" % (str(s), ', '.join(map(lambda x: "'%s'" % x[1], LayerSource.SOURCE_TYPE ))))
26 26
27class Command(BaseCommand): 27class Command(BaseCommand):
28 help = "Loads a toasterconf.json file in the database" 28 help = "Loads a toasterconf.json file in the database"