Added detailed error message

This commit is contained in:
Peer Schütt 2026-03-11 16:15:24 +01:00
parent 6f04f1f2f9
commit 670f3a40ef

View File

@ -361,7 +361,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
}
catch (JsonException)
{
return T("Invalid JSON.");
return T("Invalid JSON: Add the parameters in proper JSON formatting, e.g., \"temperature\": 0.5. Remove trailing commas. The usual surrounding curly brackets {} must not be used, though.");
}
}
@ -494,7 +494,7 @@ public partial class ProviderDialog : MSGComponentBase, ISecretId
if (objectStack.Count != 0)
{
errorMessage = T("Invalid JSON.");
errorMessage = T("Invalid JSON: Add the parameters in proper JSON formatting, e.g., \"temperature\": 0.5. Remove trailing commas. The usual surrounding curly brackets {} must not be used, though.");
return false;
}