Skip to content

feat: Provide a better error when someone references an env variable that doesn't exist #289

@erezrokah

Description

@erezrokah

We support env variables resolution in our config, for example:

kind: destination
spec:
  name: postgresql
  version: v1.2.0
  spec:
    connection_string: ${CQ_DSN}

However if CQ_DSN is not configured we fail with a confusing error:

Loading spec(s) from examples
Error: failed to sync source azure: failed to initialize destination plugin client for postgresql: destination configure: failed to call Configure: rpc error: code = Unknown desc = failed to connect to postgresql: failed to connect to `host=/private/tmp user=<user> database=`: dial error (dial unix /private/tmp/.s.PGSQL.5432: connect: no such file or directory)
exit status 1

We should provide a clear error message in these cases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions