FakeBlazeCommandRunner: catch specific exception
@@ -18,6 +18,7 @@ package com.google.idea.blaze.base.bazel;
import com.google.idea.blaze.base.command.BlazeCommand;
import com.google.idea.blaze.base.command.BlazeCommandRunner;
import com.google.idea.blaze.base.command.buildresult.BuildResultHelper;
+import com.google.idea.blaze.base.command.buildresult.BuildResultHelper.GetArtifactsException;
import com.google.idea.blaze.base.model.primitives.WorkspaceRoot;
import com.google.idea.blaze.base.scope.BlazeContext;
import com.google.idea.blaze.base.sync.aspects.BlazeBuildOutputs;
@@ -42,7 +43,7 @@ public final class FakeBlazeCommandRunner implements BlazeCommandRunner {
try {
return BlazeBuildOutputs.fromParsedBepOutput(
BuildResult.SUCCESS, buildResultHelper.getBuildOutput());
- } catch (Exception e) {
+ } catch (GetArtifactsException e) {
return BlazeBuildOutputs.noOutputs(BuildResult.FATAL_ERROR);
}
}
