[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [craft] bin: Print whole env if parsing fails
From: Hannah von Reth <null () kde ! org>
Date: 2018-09-27 9:27:27
Message-ID: E1g5SZz-0004H2-Vg () code ! kde ! org
[Download RAW message or body]
Git commit f279be8850ced95cb6a61ec506e633d307044a18 by Hannah von Reth.
Committed on 27/09/2018 at 09:27.
Pushed by vonreth into branch 'master'.
Print whole env if parsing fails
M +1 -1 bin/CraftSetupHelper.py
https://commits.kde.org/craft/f279be8850ced95cb6a61ec506e633d307044a18
diff --git a/bin/CraftSetupHelper.py b/bin/CraftSetupHelper.py
index eac04e5d5..d41aec6af 100644
--- a/bin/CraftSetupHelper.py
+++ b/bin/CraftSetupHelper.py
@@ -185,7 +185,7 @@ class SetupHelper(object):
for line in string.strip().split("\n"):
kv = line.strip().split("=", 1)
if len(kv) != 2:
- raise Exception(f"Failed to parse environment variable: {line}")
+ raise Exception(f"Failed to parse environment variable: {line}\n{string}")
# TODO: why?
if kv[0] == "Path":
kv[0] = "PATH"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic