Skip to content

Commit 95d2088

Browse files
committed
ok
1 parent 1fa4622 commit 95d2088

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

myst_libre/tools/myst_client.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ def run_command(self, *args, env_vars={}, user=None, group=None):
141141
print(f"Error running command: {e}")
142142
print(f"Command output: {e.output}")
143143
print(f"Error output: {e.stderr}")
144-
return None, e.stderr
144+
return "Error", e.stderr
145145
except Exception as e:
146146
print(f"Unexpected error: {e}")
147-
return None, str(e)
147+
return "Error", str(e)
148148

149149
def build(self, *args, user=None, group=None):
150150
"""
@@ -157,14 +157,12 @@ def build(self, *args, user=None, group=None):
157157
str: Command output or None if failed.
158158
"""
159159
os.chdir(self.build_dir)
160-
self.cprint(f"--> Self env vars {self.env_vars}", "green")
160+
#self.cprint(f"--> Self env vars {self.env_vars}", "green")
161161
stdout_log, stderr_log = self.run_command(*args, env_vars=self.env_vars, user=user, group=group)
162-
self.cprint(f"🐞 Command output: {stdout_log}", "light_grey")
162+
#self.cprint(f"🐞 Command output: {stdout_log}", "light_grey")
163163
if stderr_log is not None:
164-
combined_log = stdout_log + stderr_log
165-
else:
166-
combined_log = stderr_log
167-
return combined_log
164+
stdout_log += stderr_log
165+
return stdout_log
168166

169167
def convert(self, input_file, output_file, user=None, group=None):
170168
"""

0 commit comments

Comments
 (0)