Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: misleading error messages in settings API endpoints (#2356)

LearningCircuitf8e0cd260272
diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.py
index 2f2639628b..ab55bf3e60 100644
--- a/src/local_deep_research/web/routes/settings_routes.py
+++ b/src/local_deep_research/web/routes/settings_routes.py
@@ -1053,7 +1053,7 @@ def api_update_setting(key):
), 500
except Exception:
logger.exception(f"Error updating setting {key}")
- return jsonify({"error": "Failed to retrieve settings"}), 500
+ return jsonify({"error": "Failed to update setting"}), 500
@settings_bp.route("/api/<path:key>", methods=["DELETE"])
@@ -1101,7 +1101,7 @@ def api_delete_setting(key):
), 500
except Exception:
logger.exception(f"Error deleting setting {key}")
- return jsonify({"error": "Failed to retrieve settings"}), 500
+ return jsonify({"error": "Failed to delete setting"}), 500
@settings_bp.route("/api/import", methods=["POST"])
@@ -1118,7 +1118,7 @@ def api_import_settings():
return jsonify({"message": "Settings imported successfully"})
except Exception:
logger.exception("Error importing settings")
- return jsonify({"error": "Failed to retrieve settings"}), 500
+ return jsonify({"error": "Failed to import settings"}), 500
@settings_bp.route("/api/categories", methods=["GET"])
@@ -1789,7 +1789,7 @@ def api_get_available_search_engines():
except Exception:
logger.exception("Error getting available search engines")
- return jsonify({"error": "Failed to retrieve settings"}), 500
+ return jsonify({"error": "Failed to retrieve search engines"}), 500
@settings_bp.route("/api/search-favorites", methods=["GET"])
@@ -2334,7 +2334,7 @@ def api_get_warnings():
return jsonify({"warnings": warnings})
except Exception:
logger.exception("Error getting warnings")
- return jsonify({"error": "Failed to retrieve settings"}), 500
+ return jsonify({"error": "Failed to retrieve warnings"}), 500
@settings_bp.route("/api/ollama-status", methods=["GET"])
@@ -2588,7 +2588,7 @@ def api_get_data_location():
except Exception:
logger.exception("Error getting data location information")
- return jsonify({"error": "Failed to retrieve settings"}), 500
+ return jsonify({"error": "Failed to retrieve data location"}), 500
@settings_bp.route("/api/notifications/test-url", methods=["POST"])