fix: add labels to NodeNotFoundError for clearer messaging
DH
6mo ago+133+133+012345678901234567890123456789-35-35-01234567890123456789
The error message now shows Branch:, Kind:, and Identifier: labels
instead of raw pipe-separated values, helping users understand
which branch the lookup failed on.
Before:
Unable to find the node in the database.
main | InfraDevice | {'name__value': 'bad-device404'}
After:
Unable to find the node in the database.
Branch: main | Kind: InfraDevice | Identifier: {'name__value': 'bad-device404'}
Fixes opsmill/infrahub#5514
Summary by cubic
Add labels to NodeNotFoundError and require keyword-only branch_name, node_type, and identifier, producing consistent messages like "Branch: ... | Kind: ... | Identifier: ...".
Updated file download paths to pass branch and node ID, and store/CTL lookups to include branch (falling back to the client’s default), so all NodeNotFoundError instances carry full context.