Skip to content

Commit ac5ca31

Browse files
committed
use lib errors
1 parent a4cd32d commit ac5ca31

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

cmd/src/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"context"
55
"encoding/json"
6-
"errors"
76
"io"
87
"net/url"
98
"os"
@@ -13,6 +12,7 @@ import (
1312
"github.com/google/go-cmp/cmp"
1413
"github.com/google/go-cmp/cmp/cmpopts"
1514

15+
"github.com/sourcegraph/sourcegraph/lib/errors"
1616
"github.com/sourcegraph/src-cli/internal/api"
1717
)
1818

internal/api/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"context"
77
"crypto/tls"
88
"encoding/json"
9-
"errors"
109
"fmt"
1110
"io"
1211
"net/http"
@@ -20,6 +19,8 @@ import (
2019

2120
"github.com/sourcegraph/src-cli/internal/oauth"
2221
"github.com/sourcegraph/src-cli/internal/version"
22+
23+
"github.com/sourcegraph/sourcegraph/lib/errors"
2324
)
2425

2526
// Client instances provide methods to create API requests.

0 commit comments

Comments
 (0)