Skip to content

[BUG] dbtf init should show parse errors in profiles.yml #1052

@connie-carey

Description

@connie-carey

Describe the bug

When dbtf init fails to parse profile.yml it fails silently and behaves like it didn't find any profiles.yml files.

Image

If I run dbtf debug, the error becomes clear:

Image

What version of dbt Fusion is this bug in? (find out by running dbt --version) all versions

Is this a discrepancy between the dbt Fusion Engine and dbt Core? Check one.

  • YES
  • NO

To Reproduce

  1. Add an invalid character to profiles.yml (e.g. add '@' at the start of the password value)
  2. Run dbtf debug to confirm it throws a YAML error
  3. Run dbtf init to see that the profiles.yml parsing error fails silently

Expected behavior
dbtf init should throw the same error after showing message that profile already exists:

Screenshots
If applicable, add screenshots to help explain your problem.

Operating System and CPU Type (please complete the following information):

  • Mac/Windows/Linux?
  • X86 or ARM?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions