Fix Error Message for empty response

This commit is contained in:
Hongtao Zhang 2022-08-21 22:09:56 -04:00
parent 793b432d61
commit f6e6cd5a42
No known key found for this signature in database
GPG key ID: 75F655B91C7AC9BB

View file

@ -280,7 +280,7 @@ namespace Flow.Launcher.Core.Plugin
switch (sourceBuffer.Length, errorBuffer.Length)
{
case (0, 0):
var errorMessage = Encoding.UTF8.GetString(errorBuffer.GetBuffer(), 0, (int)errorBuffer.Position);
const string errorMessage = "Empty JSON-RPC Response.";
Log.Warn($"|{nameof(JsonRPCPlugin)}.{nameof(ExecuteAsync)}|{errorMessage}");
break;
case (_, not 0):