Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
修改 ShowAndLog 显示提示框类型
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky8955555 committed May 16, 2021
1 parent d45b22b commit 3d38ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/SystemExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class SystemExtensions
public static Exception ShowAndLog(this Exception ex, Logger logger, bool terminating = false)
{
logger.Add(new Log(ex.ToString(), terminating ? LogLevel.Fatal : LogLevel.Error));
MessageBoxUtilities.ShowWarning($"程序给你抛出了异常,异常消息:\n{ex.Message}\n详细信息请查看日志,并提交 Issue,有能力的话也可以发 Pull Request 哦");
MessageBoxUtilities.ShowError($"程序给你抛出了异常,异常消息:\n{ex.Message}\n详细信息请查看日志,并提交 Issue,有能力的话也可以发 Pull Request 哦");

return ex;
}
Expand Down

0 comments on commit 3d38ac4

Please sign in to comment.