Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Update serialisers.py

shamoond3ac75741f55
diff --git a/src/paperless/serialisers.py b/src/paperless/serialisers.py
index 495ae018a..4939bc1ba 100644
--- a/src/paperless/serialisers.py
+++ b/src/paperless/serialisers.py
@@ -248,7 +248,9 @@ class ApplicationConfigurationSerializer(serializers.ModelSerializer):
allow_internal=settings.LLM_ALLOW_INTERNAL_ENDPOINTS,
)
except ValueError as e:
- raise serializers.ValidationError(str(e)) from e
+ raise serializers.ValidationError(
+ f"Invalid LLM endpoint: {e.args[0]}, see logs for details",
+ ) from e
return value