Add "Error" to error message for consistency.

This commit is contained in:
Bryan Gardiner 2024-09-09 23:04:33 -07:00
parent b2cf56efff
commit ae4749c20d
No known key found for this signature in database
GPG key ID: 53EFBCA063E6183C

View file

@ -685,7 +685,7 @@ def query_closure_disk_usage_bytes(target: Path) -> Optional[int]:
# allowed to fail. # allowed to fail.
).stdout ).stdout
except FileNotFoundError: except FileNotFoundError:
sys.stderr.write("nvd: Couldn't run 'nix path-info --closure-size'.\n") sys.stderr.write("nvd: Error, couldn't run 'nix path-info --closure-size'.\n")
return None return None
lines = stdout.rstrip("\n").split("\n") lines = stdout.rstrip("\n").split("\n")