Skip to content

Commit f9531f3

Browse files
sagor999roboquat
authored andcommitted
[ws-daemon] update log message to be unique
1 parent 21f4a14 commit f9531f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/ws-daemon/pkg/content/service.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func (s *WorkspaceService) DisposeWorkspace(ctx context.Context, req *api.Dispos
288288

289289
sess := s.store.Get(req.Id)
290290
if sess == nil {
291-
return nil, status.Error(codes.NotFound, "workspace does not exist")
291+
return nil, status.Error(codes.NotFound, "cannot find workspace during DisposeWorkspace")
292292
}
293293

294294
// We were asked to do a backup of a session that was never ready. There seems to have been some state drift here - tell the caller.
@@ -643,7 +643,7 @@ func (s *WorkspaceService) WaitForInit(ctx context.Context, req *api.WaitForInit
643643

644644
session := s.store.Get(req.Id)
645645
if session == nil {
646-
return nil, status.Error(codes.NotFound, "workspace does not exist")
646+
return nil, status.Error(codes.NotFound, "cannot find workspace during WaitForInit")
647647
}
648648

649649
// the next call will block until the workspace is initialized
@@ -664,7 +664,7 @@ func (s *WorkspaceService) TakeSnapshot(ctx context.Context, req *api.TakeSnapsh
664664

665665
sess := s.store.Get(req.Id)
666666
if sess == nil {
667-
return nil, status.Error(codes.NotFound, "workspace does not exist")
667+
return nil, status.Error(codes.NotFound, "cannot find workspace during TakeSnapshot")
668668
}
669669
if !sess.IsReady() {
670670
return nil, status.Error(codes.FailedPrecondition, "workspace is not ready")
@@ -725,7 +725,7 @@ func (s *WorkspaceService) BackupWorkspace(ctx context.Context, req *api.BackupW
725725
// i.e. location = /mnt/disks/ssd0/workspaces- + req.Id
726726
// It would also need to setup the remote storagej
727727
// ... but in the worse case we *could* backup locally and then upload manually
728-
return nil, status.Error(codes.NotFound, "workspace does not exist")
728+
return nil, status.Error(codes.NotFound, "cannot find workspace during BackupWorkspace")
729729
}
730730
if sess.RemoteStorageDisabled {
731731
return nil, status.Errorf(codes.FailedPrecondition, "workspace has no remote storage")

0 commit comments

Comments
 (0)