diff --git a/15.0/wait-for-psql.py b/15.0/wait-for-psql.py index a55f440..e897229 100755 --- a/15.0/wait-for-psql.py +++ b/15.0/wait-for-psql.py @@ -28,5 +28,5 @@ if __name__ == '__main__': time.sleep(1) if error: - print("Database connection failure: %s" % error, file=sys.stderr) + print(f"Database connection failure after {int(time.time() - start_time)} seconds: {error}", file=sys.stderr) sys.exit(1)