Unstable 1.2.1.0
This commit is contained in:
+3
-2
@@ -283,7 +283,7 @@ namespace Barotrauma
|
||||
catch (Exception e)
|
||||
{
|
||||
var innermost = e.GetInnermost();
|
||||
DebugConsole.LogError($"Failed to load \"{filesToLoad[i].Path}\": {innermost.Message}\n{innermost.StackTrace}");
|
||||
DebugConsole.LogError($"Failed to load \"{filesToLoad[i].Path}\": {innermost.Message}\n{innermost.StackTrace}", contentPackage: this);
|
||||
exception = e;
|
||||
}
|
||||
if (exception != null)
|
||||
@@ -391,7 +391,8 @@ namespace Barotrauma
|
||||
|
||||
DebugConsole.AddWarning(
|
||||
$"The following errors occurred while loading the content package \"{Name}\". The package might not work correctly.\n" +
|
||||
string.Join('\n', FatalLoadErrors.Select(errorToStr)));
|
||||
string.Join('\n', FatalLoadErrors.Select(errorToStr)),
|
||||
this);
|
||||
|
||||
static string errorToStr(LoadError error)
|
||||
=> error.ToString();
|
||||
|
||||
Reference in New Issue
Block a user