File tree Expand file tree Collapse file tree
apps/web/src/components/pullRequest Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ import {
88 scopeProjectRef ,
99 scopeThreadRef ,
1010} from "@t3tools/client-runtime/environment" ;
11- import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime" ;
11+ import {
12+ isAtomCommandInterrupted ,
13+ squashAtomCommandFailure ,
14+ } from "@t3tools/client-runtime/state/runtime" ;
1215import {
1316 AuthOrchestrationOperateScope ,
1417 AuthSourceControlWriteScope ,
@@ -1218,7 +1221,9 @@ export function PullRequestDetailPanel({
12181221 toastManager . update ( toastId , {
12191222 type : "error" ,
12201223 title : "Could not prepare the pull request checkout" ,
1221- description : checkoutFailureDescription ( squashAtomCommandFailure ( prepared ) ) ,
1224+ description : checkoutFailureDescription (
1225+ isAtomCommandInterrupted ( prepared ) ? undefined : squashAtomCommandFailure ( prepared ) ,
1226+ ) ,
12221227 } ) ;
12231228 return ;
12241229 }
Original file line number Diff line number Diff line change 11import { useAtomCommand } from "~/state/use-atom-command" ;
22import { scopeProjectRef } from "@t3tools/client-runtime/environment" ;
3- import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime" ;
3+ import {
4+ isAtomCommandInterrupted ,
5+ squashAtomCommandFailure ,
6+ } from "@t3tools/client-runtime/state/runtime" ;
47import type {
58 EnvironmentId ,
69 ProjectId ,
@@ -345,7 +348,9 @@ export function usePullRequestHandoffs({
345348 toastManager . update ( toastId , {
346349 type : "error" ,
347350 title : "Could not prepare the pull request checkout" ,
348- description : checkoutFailureDescription ( squashAtomCommandFailure ( prepared ) ) ,
351+ description : checkoutFailureDescription (
352+ isAtomCommandInterrupted ( prepared ) ? undefined : squashAtomCommandFailure ( prepared ) ,
353+ ) ,
349354 } ) ;
350355 return ;
351356 }
You can’t perform that action at this time.
0 commit comments