Skip to content

sql_connection.py error reporting is misleading  #965

Closed
@wdwvt1

Description

@wdwvt1

Multiple error types are caught by line 153. Specifically, if the database has been dropped, the error will still report that it can't find the right user. As an example:

qiita_env make --no-load-ontologies
qiita_env drop 
qiita webserver start

results in the error:
RuntimeError: Can't connect to database; user wdwvtis not known. Your QIITA configuration file, located at/Users/wdwvt/src/qiita/config_test.txtmust specify the correct user, via theUSERparameter under the[postgres]header. Please refer toINSTALL.md in the QIITA base directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions