Skip to content

Commit b2ababc

Browse files
committed
debug: fix invoke on error
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent cacb4fb commit b2ababc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commands/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func runControllerBuild(ctx context.Context, dockerCli command.Cli, opts *contro
466466
if err != nil {
467467
var be *controllererrors.BuildError
468468
if errors.As(err, &be) {
469-
ref = be.Ref
469+
ref = be.SessionID
470470
retErr = err
471471
// We can proceed to monitor
472472
} else {

monitor/commands/reload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (cm *ReloadCmd) Exec(ctx context.Context, args []string) error {
6666
if err != nil {
6767
var be *controllererrors.BuildError
6868
if errors.As(err, &be) {
69-
ref = be.Ref
69+
ref = be.SessionID
7070
resultUpdated = true
7171
} else {
7272
fmt.Printf("failed to reload: %v\n", err)

0 commit comments

Comments
 (0)