Clean up errors
This commit is contained in:
parent
eaf8f84baf
commit
e8e9b58670
2 changed files with 3 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ func (a *App) Jupyter(ctx context.Context, codespaceName string) error {
|
|||
serverPort, serverUrl, err := session.StartJupyterServer(ctx)
|
||||
a.StopProgressIndicator()
|
||||
if err != nil {
|
||||
return fmt.Errorf("error getting jupyter server details: %w", err)
|
||||
return err
|
||||
}
|
||||
|
||||
// Pass 0 to pick a random port
|
||||
|
|
|
|||
|
|
@ -77,12 +77,12 @@ func (s *Session) StartJupyterServer(ctx context.Context) (int, string, error) {
|
|||
}
|
||||
|
||||
if !response.Result {
|
||||
return 0, "", fmt.Errorf("failed to start jupyter server: %s", response.Message)
|
||||
return 0, "", fmt.Errorf("failed to start JupyterLab: %s", response.Message)
|
||||
}
|
||||
|
||||
port, err := strconv.Atoi(response.Port)
|
||||
if err != nil {
|
||||
return 0, "", fmt.Errorf("failed to parse port: %w", err)
|
||||
return 0, "", err
|
||||
}
|
||||
|
||||
return port, response.ServerUrl, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue