From 6f55163152197919c91334fe4a91a0d2ba1c1344 Mon Sep 17 00:00:00 2001 From: Max Weber Date: Wed, 9 May 2018 02:35:02 -0600 Subject: [PATCH] http-api: print a more helpful error message when resources are not filtered --- http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java b/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java index 6900482485..da35dc9e42 100644 --- a/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java +++ b/http-api/src/main/java/net/runelite/http/api/RuneLiteAPI.java @@ -58,6 +58,10 @@ public class RuneLiteAPI version = properties.getProperty("runelite.version"); rsVersion = Integer.parseInt(properties.getProperty("rs.version")); } + catch (NumberFormatException e) + { + throw new RuntimeException("Version string has not been substituted; Re-run maven"); + } catch (IOException ex) { logger.error(null, ex);