summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-18 20:30:27 +0100
committerlupoDharkael <izhe@hotmail.es>2024-03-21 10:29:57 +0100
commit049b7a5a2b13a69448937aba275ec2f35407b95e (patch)
tree8f96e1f6ef21d5de9366a2e89a79e56ce0f27917 /src/ogRest.py
parent8741b2e2724fabb25465c06c3a4f881d9aa28d67 (diff)
src: make exception messages more contextual and explicit
Provide more information in exception messages as those are the source of the logging messages. Add information about paths, files or configuration related to the operation associated to the exception.
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index 47767b6..c7bdcdb 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -263,7 +263,7 @@ class ogRest():
from src.windows.ogOperations import OgWindowsOperations
self.operations = OgWindowsOperations()
else:
- raise ValueError('Mode not supported.')
+ raise ValueError(f'Ogrest mode \'{self.mode}\'not supported')
def send_internal_server_error(self, client, exc=None):
if isinstance(exc, AssertionError):