The error message box now shows the exact file name of the error file
This commit is contained in:
parent
58a3e79f3b
commit
49cc4aa1ca
@ -57,7 +57,9 @@ namespace VEPROMS
|
|||||||
// <param name="File" value="${LOCALAPPDATA}/Temp/VEPROMS/ErrorLog.txt" /> - Vista - puts in local directory. !Exist for XP
|
// <param name="File" value="${LOCALAPPDATA}/Temp/VEPROMS/ErrorLog.txt" /> - Vista - puts in local directory. !Exist for XP
|
||||||
|
|
||||||
// Decided to use 'documents directory' for error log file so that it is easily accessible by user:
|
// Decided to use 'documents directory' for error log file so that it is easily accessible by user:
|
||||||
string dpath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\ErrorLog.txt";
|
string dpath = frmVEPROMS.ErrorLogFileName;
|
||||||
|
if (dpath == null || dpath == "")
|
||||||
|
dpath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\VEPROMS\ErrorLog.txt";
|
||||||
_log.Error("Proms Main ThreadException", e.Exception);
|
_log.Error("Proms Main ThreadException", e.Exception);
|
||||||
string msg = string.Format("An error has occurred so the program will terminate. Please send the error log, {0}, to Volian.",dpath);
|
string msg = string.Format("An error has occurred so the program will terminate. Please send the error log, {0}, to Volian.",dpath);
|
||||||
MessageBox.Show(msg);
|
MessageBox.Show(msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user