More better server logging, rev version

This commit is contained in:
Tyfon
2024-08-12 17:05:24 -07:00
parent 54812d4a03
commit 9324922f82
3 changed files with 10 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
<TargetFramework>net471</TargetFramework> <TargetFramework>net471</TargetFramework>
<AssemblyName>Tyfon.UIFixes</AssemblyName> <AssemblyName>Tyfon.UIFixes</AssemblyName>
<Description>SPT UI Fixes</Description> <Description>SPT UI Fixes</Description>
<Version>2.3.4</Version> <Version>2.4.0</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
<Configurations>Debug;Release</Configurations> <Configurations>Debug;Release</Configurations>

View File

@@ -1,6 +1,6 @@
{ {
"name": "uifixes", "name": "uifixes",
"version": "2.3.4", "version": "2.4.0",
"main": "src/mod.js", "main": "src/mod.js",
"license": "MIT", "license": "MIT",
"author": "Tyfon", "author": "Tyfon",

View File

@@ -47,7 +47,7 @@ class UIFixes implements IPreSptLoadMod {
} }
} }
} catch (error) { } catch (error) {
this.logger.error(`UIFixes failed to restore quickbinds\n ${error}`); this.logger.error(`UIFixes: Failed to restore quickbinds\n ${error}`);
} }
}; };
}, },
@@ -78,7 +78,7 @@ class UIFixes implements IPreSptLoadMod {
} }
} }
} catch (error) { } catch (error) {
this.logger.error(`UIFixes failed to save tool origin\n ${error}`); this.logger.error(`UIFixes: Failed to save tool origin\n ${error}`);
} }
return result; return result;
@@ -149,10 +149,12 @@ class UIFixes implements IPreSptLoadMod {
} }
} }
} catch (error) { } catch (error) {
this.logger.error( this.logger.error(`UIFixes: Encounted an error trying to put tool back.\n ${error}`);
`UIFixes failed to put a tool back, it will be returned to your stash as normal.\n ${error}`
);
} }
this.logger.info(
"UIFixes: Unable to put tool back in its original container, returning it to stash."
);
} }
return original.call(inventoryHelper, sessionId, request, pmcData, output); return original.call(inventoryHelper, sessionId, request, pmcData, output);
@@ -200,7 +202,7 @@ class UIFixes implements IPreSptLoadMod {
if (!quests[questId]) { if (!quests[questId]) {
this.logger.error( this.logger.error(
`Trader ${traderId} questassort references unknown quest ${JSON.stringify(questId)}!` `UIFixes: Trader ${traderId} questassort references unknown quest ${JSON.stringify(questId)}!`
); );
continue; continue;
} }