Skip to content

Commit 88b4302

Browse files
committed
Increase ddev command timeout and add path to error message
1 parent 6f4d0e5 commit 88b4302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/php_perfect/intellij/ddev/cmd/DdevImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import java.util.Objects;
1313

1414
public final class DdevImpl implements Ddev {
15-
private static final int COMMAND_TIMEOUT = 5_000;
15+
private static final int COMMAND_TIMEOUT = 8_000;
1616

1717
public @NotNull Versions version(final @NotNull String binary, final @NotNull Project project) throws CommandFailedException {
1818
return execute(binary, "version", Versions.class, project);
@@ -30,7 +30,7 @@ public final class DdevImpl implements Ddev {
3030
processOutput = ProcessExecutor.getInstance().executeCommandLine(commandLine, COMMAND_TIMEOUT, false);
3131

3232
if (processOutput.isTimeout()) {
33-
throw new CommandFailedException("Command timed out after " + (COMMAND_TIMEOUT / 1000) + " seconds: " + commandLine.getCommandLineString());
33+
throw new CommandFailedException("Command timed out after " + (COMMAND_TIMEOUT / 1000) + " seconds: " + commandLine.getCommandLineString() + " in " + commandLine.getWorkDirectory().getPath());
3434
}
3535

3636
if (processOutput.getExitCode() != 0) {

0 commit comments

Comments
 (0)