build/generic_platform: include identifier in ValueError
* show which identifier is incorrectly specified
This commit is contained in:
parent
053e540b8a
commit
0e164bb23c
|
@ -155,7 +155,10 @@ class ConnectorManager:
|
||||||
r = []
|
r = []
|
||||||
for identifier in identifiers:
|
for identifier in identifiers:
|
||||||
if ":" in identifier:
|
if ":" in identifier:
|
||||||
conn, pn = identifier.split(":")
|
try:
|
||||||
|
conn, pn = identifier.split(":")
|
||||||
|
except ValueError as err:
|
||||||
|
raise ValueError(f"\"{identifier}\" {err}") from err
|
||||||
if pn.isdigit():
|
if pn.isdigit():
|
||||||
pn = int(pn)
|
pn = int(pn)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue