@@ -288,7 +288,7 @@ func (s *WorkspaceService) DisposeWorkspace(ctx context.Context, req *api.Dispos
288
288
289
289
sess := s .store .Get (req .Id )
290
290
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 " )
292
292
}
293
293
294
294
// 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
643
643
644
644
session := s .store .Get (req .Id )
645
645
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 " )
647
647
}
648
648
649
649
// the next call will block until the workspace is initialized
@@ -664,7 +664,7 @@ func (s *WorkspaceService) TakeSnapshot(ctx context.Context, req *api.TakeSnapsh
664
664
665
665
sess := s .store .Get (req .Id )
666
666
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 " )
668
668
}
669
669
if ! sess .IsReady () {
670
670
return nil , status .Error (codes .FailedPrecondition , "workspace is not ready" )
@@ -725,7 +725,7 @@ func (s *WorkspaceService) BackupWorkspace(ctx context.Context, req *api.BackupW
725
725
// i.e. location = /mnt/disks/ssd0/workspaces- + req.Id
726
726
// It would also need to setup the remote storagej
727
727
// ... 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 " )
729
729
}
730
730
if sess .RemoteStorageDisabled {
731
731
return nil , status .Errorf (codes .FailedPrecondition , "workspace has no remote storage" )
0 commit comments