Skip to content

Let Teaspoon output helpful error message without database

What does this MR do?

When running Teaspoon, check if database connection is established and output a helpful error message if not.

Why was this MR needed?

Currently, when database server is not running, Teaspoon outputs the following:

Starting the Teaspoon server...
Thin web server (v1.7.0 codename Dunder Mifflin)
Maximum connections set to 1024
Listening on 127.0.0.1:35468, CTRL+C to stop
Teaspoon running default suite at http://127.0.0.1:35468/teaspoon/default
Failed to load: http://127.0.0.1:35468/teaspoon/default?reporter=Console

Merge request reports