Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-function-indication
This commit is contained in:
commit
10759a7939
|
|
@ -122,6 +122,11 @@ public static class StringExtensions
|
|||
return s;
|
||||
}
|
||||
|
||||
if (value is DateTime d)
|
||||
{
|
||||
return d.ToString("o");
|
||||
}
|
||||
|
||||
if (value is JsonElement elem
|
||||
&& elem.ValueKind == JsonValueKind.String)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ public partial class RoutingService
|
|||
}
|
||||
catch (JsonException ex)
|
||||
{
|
||||
_logger.LogError($"The input does not contain any JSON tokens:\r\n{message.Content}");
|
||||
_logger.LogError($"The input does not contain any JSON tokens:\r\n{message.Content}\r\n{ex.Message}");
|
||||
message.StopCompletion = true;
|
||||
message.Content = ex.Message;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue