Commit 809c3512 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Improve the JSON config decode error message

parent 671a275e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ def import_from(context, items):
			if value[0] in '[{"':
				value = json.loads(value)
		except (IndexError, ValueError) as exc:
			raise ValueError("""JSON decode error while decoding {}="{}": {}"""
			raise ValueError("""JSON decode error while decoding {}={!r}: {}"""
					.format(name, value, exc))
		if cur and add:
			if __debug__: