Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit 2c10264

Browse files
committed
Don't fail ls if no proxy URL exists
Resolves #115
1 parent 3def67e commit 2c10264

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

codeserver.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func loadCodeServer(ctx context.Context) (string, error) {
6464
if err != nil {
6565
if !os.IsNotExist(err) {
6666
return "", xerrors.Errorf("failed to get download URL: %w", err)
67-
6867
}
6968

7069
lastDownloadURL = []byte("")

lscmd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ func listProjects() ([]projectInfo, error) {
6060

6161
url, err := proxyURL(dockerName)
6262
if err != nil {
63-
return nil, xerrors.Errorf("failed to find container %s port: %w", info.name, err)
63+
flog.Error("container %v doesn't have a proxy URL.", info.name)
64+
continue
6465
}
66+
6567
info.url = url
6668
info.hat = cnt.Labels[hatLabel]
6769
info.status = cnt.Status

0 commit comments

Comments
 (0)