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 = []
|
||||
for identifier in identifiers:
|
||||
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():
|
||||
pn = int(pn)
|
||||
|
||||
|
|
Loading…
Reference in New Issue