- [GUI] Change error log handing.
This commit is contained in:
@@ -879,7 +879,7 @@ namespace AssetStudio.GUI
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Preview {assetItem.Type}:{assetItem.Text} error\r\n{e.Message}\r\n{e.StackTrace}");
|
Logger.Error($"Preview {assetItem.Type}:{assetItem.Text} error\r\n{e.Message}\r\n{e.StackTrace}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2472,7 +2472,7 @@ namespace AssetStudio.GUI
|
|||||||
ERRCHECK(result);
|
ERRCHECK(result);
|
||||||
if (version < FMOD.VERSION.number)
|
if (version < FMOD.VERSION.number)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Error! You are using an old version of FMOD {version:X}. This program requires {FMOD.VERSION.number:X}.");
|
Logger.Error($"Error! You are using an old version of FMOD {version:X}. This program requires {FMOD.VERSION.number:X}.");
|
||||||
Application.Exit();
|
Application.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -603,7 +603,7 @@ namespace AssetStudio.GUI
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Export {asset.Type}:{asset.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
Logger.Error($"Export {asset.Type}:{asset.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
||||||
}
|
}
|
||||||
|
|
||||||
Progress.Report(++i, toExportCount);
|
Progress.Report(++i, toExportCount);
|
||||||
@@ -726,7 +726,7 @@ namespace AssetStudio.GUI
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Export GameObject:{j.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
Logger.Error($"Export GameObject:{j.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
||||||
}
|
}
|
||||||
|
|
||||||
Progress.Report(++k, count);
|
Progress.Report(++k, count);
|
||||||
@@ -787,7 +787,7 @@ namespace AssetStudio.GUI
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Export Animator:{animator.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
Logger.Error($"Export Animator:{animator.Text} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
||||||
StatusStripUpdate("Error in export");
|
StatusStripUpdate("Error in export");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -815,7 +815,7 @@ namespace AssetStudio.GUI
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Export GameObject:{gameObject.m_Name} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
Logger.Error($"Export GameObject:{gameObject.m_Name} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
||||||
StatusStripUpdate("Error in export");
|
StatusStripUpdate("Error in export");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -848,7 +848,7 @@ namespace AssetStudio.GUI
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Export Model:{name} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
Logger.Error($"Export Model:{name} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
||||||
StatusStripUpdate("Error in export");
|
StatusStripUpdate("Error in export");
|
||||||
}
|
}
|
||||||
if (Properties.Settings.Default.openAfterExport)
|
if (Properties.Settings.Default.openAfterExport)
|
||||||
@@ -881,7 +881,7 @@ namespace AssetStudio.GUI
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
MessageBox.Show($"Export Model:{name} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
Logger.Error($"Export Model:{name} error\r\n{ex.Message}\r\n{ex.StackTrace}");
|
||||||
StatusStripUpdate("Error in export");
|
StatusStripUpdate("Error in export");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user