Skip to content

[Bug]: Misleading error when pulling a preset from a nonexistent project #4222

Description

@jvstme

Steps to reproduce

$ dstack preset pull unknown-project/test
Using https://sky.dstack.ai for unknown-project
The server at https://sky.dstack.ai (project 'unknown-project') does not support the preset registry

Actual behaviour

The error message says that https://sky.dstack.ai does not support the preset registry, which is incorrect.

Expected behaviour

The error message should say that the project / preset does not exist

dstack version

0.21.3

Server logs

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions