Skip to content

Commit

Permalink
v3.2.3 improves the error msg text
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Jul 28, 2021
1 parent caf77b8 commit dfab7be
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file modified 1.3/Assemblies/AchtungMod.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>net.pardeike.rimworld.mod.achtung</identifier>
<version>3.2.2.0</version>
<version>3.2.3.0</version>
<targetVersions>
<li>1.0.0</li>
<li>1.1.0</li>
Expand Down
2 changes: 1 addition & 1 deletion Source/Achtung.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<OutputPath>..\1.3\Assemblies\</OutputPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Version>3.2.2.0</Version>
<Version>3.2.3.0</Version>
<Copyright>© July, 2016</Copyright>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Source/ExceptionAnalyser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ List<ModInfo> GetAllModInfos(Exception ex, int level)
{
var method = Harmony.GetMethodFromStackframe(frame);
var patches = FindPatches(method);
modInfos.AddRange(GetFinalizers(patches));
//modInfos.AddRange(GetFinalizers(patches));
modInfos.AddRange(GetPostfixes(patches));
modInfos.AddRange(GetPrefixes(patches));
modInfos.AddRange(GetTranspilers(patches));
Expand Down
2 changes: 1 addition & 1 deletion Source/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ public static Exception Finalizer(Exception __exception, ref List<FloatMenuOptio
var mods = handler.GetInvolvedMods(new[] { "brrainz.achtung" }).Select(info => info.metaData.GetWorkshopName() ?? info.metaData.Name).Distinct();
var possibleMods = mods.Any() ? $". Possible mods in order of likeliness: {mods.Join()}" : "";
__result ??= new List<FloatMenuOption>();
__result.Add(new FloatMenuOption($"Some mod caused a {__exception.GetType().Name}{possibleMods}. Select to copy annotated stacktrace to clipboard", () =>
__result.Add(new FloatMenuOption($"Achtung found that some other mod(s) caused the following error: {__exception.GetType().Name}{possibleMods}. Select to copy annotated stacktrace to clipboard", () =>
{
var te = new TextEditor { text = handler.GetStacktrace() };
te.SelectAll();
Expand Down

0 comments on commit dfab7be

Please sign in to comment.