From 038f1920bafd04c2005f74a7c642f44ce1f392fa77a66bb3e037d2c292e39e9e Mon Sep 17 00:00:00 2001 From: PioApocalypse Date: Fri, 24 Apr 2026 10:37:10 +0200 Subject: [PATCH] error message includes missing item case --- src/APIHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/APIHandler.py b/src/APIHandler.py index 414772d..2526873 100644 --- a/src/APIHandler.py +++ b/src/APIHandler.py @@ -30,7 +30,7 @@ class APIHandler: elif response.status_code // 100 == 4: match response.status_code: case 401|403: - raise ConnectionError(f"Invalid API key or authentication method.") + raise ConnectionError(f"Invalid API key, authentication method or elabid. Check if an item with ID = {elabid} actually exists.") case 404: raise ConnectionError(f"404: Not Found. This means there's no resource with this elabid (wrong elabid?) on your eLabFTW (wrong endpoint?).") case 400: