mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
fix dynamic assembly
This commit is contained in:
parent
e88e912c3c
commit
4216eec494
1 changed files with 16 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ namespace Wox.Infrastructure.Exception
|
|||
return CreateExceptionReport(exception);
|
||||
}
|
||||
|
||||
//todo log /display line by line
|
||||
private static string CreateExceptionReport(System.Exception ex)
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
|
|
@ -84,7 +85,21 @@ namespace Wox.Infrastructure.Exception
|
|||
sb.Append("* ");
|
||||
sb.Append(ass.FullName);
|
||||
sb.Append(" (");
|
||||
sb.Append(string.IsNullOrEmpty(ass.Location) ? "not supported" : ass.Location);
|
||||
|
||||
if (ass.IsDynamic)
|
||||
{
|
||||
sb.Append("dynamic assembly doesn't has location");
|
||||
}
|
||||
else if (string.IsNullOrEmpty(ass.Location))
|
||||
{
|
||||
sb.Append("location is null or empty");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append(ass.Location);
|
||||
|
||||
}
|
||||
sb.AppendLine(")");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue