build/generic_platform: include identifier in ValueError

* show which identifier is incorrectly specified
This commit is contained in:
Andrew Dennison 2021-09-05 10:29:15 +10:00
parent 053e540b8a
commit 0e164bb23c
1 changed files with 4 additions and 1 deletions

View File

@ -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)