diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-03-01 21:51:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 11:51:05 +0100 |
commit | a0b81d3592883225988e058b7de87d33fa2dddf3 (patch) | |
tree | 14ae161cfa4104cc6e4085d0a341e27740decb97 /src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | |
parent | 8e9109d3b190f5451793fe79929ac89b3876c4ff (diff) | |
download | skyhanni-a0b81d3592883225988e058b7de87d33fa2dddf3.tar.gz skyhanni-a0b81d3592883225988e058b7de87d33fa2dddf3.tar.bz2 skyhanni-a0b81d3592883225988e058b7de87d33fa2dddf3.zip |
Replaced e.printStackTrace() with ErrorManager. #1065
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 1ca6e2a70..62f49f42f 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -139,11 +139,13 @@ object NEUItems { getItemStackOrNull() ?: run { getPriceOrNull() ?: return@run fallbackItem if (ignoreItemsFilter.match(this.asString())) return@run fallbackItem - ErrorManager.logError( + ErrorManager.logErrorWithData( IllegalStateException("Something went wrong!"), "Encountered an error getting the item for §7$this§c. " + "This may be because your NEU repo is outdated. Please ask in the SkyHanni " + - "Discord if this is the case" + "Discord if this is the case.", + "Item name" to this.asString(), + "repo commit" to manager.latestRepoCommit ) fallbackItem } |