Skip to content

Commit e09a6bf

Browse files
committed
add seconds indicator to timeout error
Signed-off-by: Zen <[email protected]>
1 parent 5c9b9fe commit e09a6bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ugrd/generator_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _run(self, args: list[str], timeout=15) -> CompletedProcess:
149149
try:
150150
cmd = run(cmd_args, capture_output=True, timeout=timeout)
151151
except TimeoutExpired as e:
152-
raise RuntimeError("[%d] Command timed out: %s" % (timeout, [str(arg) for arg in cmd_args])) from e
152+
raise RuntimeError("[%ds] Command timed out: %s" % (timeout, [str(arg) for arg in cmd_args])) from e
153153

154154
if cmd.returncode != 0:
155155
self.logger.error("Failed to run command: %s" % cmd.args)

0 commit comments

Comments
 (0)