mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-18 22:04:02 +08:00
Revert "More informative completion install error messages (#1068)"
This reverts commit c2ad46d60e.
This commit is contained in:
1 parent
bcbddf42d6
commit
ba912aab56
1 file changed
+7
-15
@@ -95,21 +95,13 @@ def _generate_completion(
|
||||
target_path = completions_dir / shell / target_name
|
||||
|
||||
# Generate and write the new completion.
|
||||
try:
|
||||
new = subprocess.run(
|
||||
args=args,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf8",
|
||||
check=True,
|
||||
).stdout
|
||||
except subprocess.CalledProcessError as e:
|
||||
CONSOLE.log(f":x: Completion script generation failed: {args}")
|
||||
if e.stdout is not None and len(e.stdout) > 0:
|
||||
CONSOLE.log(e.stdout)
|
||||
if e.stderr is not None and len(e.stderr) > 0:
|
||||
CONSOLE.log(e.stderr)
|
||||
raise e
|
||||
new = subprocess.run(
|
||||
args=args,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding="utf8",
|
||||
check=True,
|
||||
).stdout
|
||||
|
||||
target_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
if not target_path.exists():
|
||||
|
||||
Reference in new issue
Block a user