surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.1k stars 84 forks source link

Wrong error: Surreal executable not found. Make sure the SurrealDB CLI is available in the command line. #76

Closed gander closed 1 year ago

gander commented 1 year ago

Describe the bug There are various causes of errors, program file missing, ports occupied, permissions missing, so it would be nice if these errors had separate error messages rather than being misleading as to the cause of the problem.

image

image

To Reproduce Steps to reproduce the behavior:

  1. Install app
  2. Run something on port 8000
  3. Run app with default settings
  4. Click start local database
  5. See error "Surreal executable not found. Make sure the SurrealDB CLI is available in the command line."

Expected behavior Display error message like "Error creating server: Address 8000 already in use".

Environment (you can view the current version under Settings):

macjuul commented 1 year ago

While I can't detect the actual reason Surreal fails to launch, I have rephrased the alert and made the console tab available at all times, allowing you to view the output and diagnose the problem manually

image