Skip to content

Commit ded9f70

Browse files
committed
updated code
1 parent 8c8e7be commit ded9f70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

faceboxteach/faceboxteach.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"strings"
1010
"time"
1111

12+
"github.com/machinebox/sdk-go/boxutil"
1213
"github.com/machinebox/sdk-go/facebox"
13-
"github.com/machinebox/sdk-go/x/boxutil"
1414
)
1515

1616
func main() {
@@ -29,8 +29,9 @@ func main() {
2929
defer cancel()
3030
err := boxutil.WaitForReady(ctx, faceboxClient)
3131
if err != nil {
32-
if err == boxutil.ErrCanceled {
32+
if err == context.Canceled {
3333
log.Fatalln("timed out waiting for box to be ready")
34+
return
3435
}
3536
log.Fatalln(err)
3637
}

0 commit comments

Comments
 (0)