so-yaml.py tell which key not found

This commit is contained in:
Josh Patterson
2026-02-23 13:19:03 -05:00
parent 1a9a087af2
commit 2375061cfa

View File

@@ -343,7 +343,7 @@ def get(args):
content = loadYaml(filename)
output = getKeyValue(content, key)
if output is None:
print("Not found", file=sys.stderr)
print(f"Key '{key}' not found by so-yaml.py", file=sys.stderr)
return 2
print(yaml.safe_dump(output))