aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/com/jantuomi/tunkki/exception
diff options
context:
space:
mode:
authorjantuomi <jans.tuomi@gmail.com>2016-07-28 15:25:19 +0300
committerjantuomi <jans.tuomi@gmail.com>2016-07-28 15:25:19 +0300
commit8c48145314883caefc9b6a5daa6b5b7adacfa2e6 (patch)
tree386c6b2d90310b337c0ba5ae10b6ea13561ecf2a /src/main/com/jantuomi/tunkki/exception
parent4b415805f7b6b0ee7c03e69e1f34898dce554c82 (diff)
Add more line number information
Diffstat (limited to 'src/main/com/jantuomi/tunkki/exception')
-rw-r--r--src/main/com/jantuomi/tunkki/exception/TunkkiError.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/com/jantuomi/tunkki/exception/TunkkiError.java b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
index 1ffcad3..24431ba 100644
--- a/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
+++ b/src/main/com/jantuomi/tunkki/exception/TunkkiError.java
@@ -16,7 +16,7 @@ public class TunkkiError extends Exception {
SyntaxError,
TypeError,
FunctionArgumentError,
- ExpectedTokenError,
+ ExpectedDifferentTokenError,
UndeclaredSymbolError,
IncludeError,
GeneralError
@@ -28,7 +28,7 @@ public class TunkkiError extends Exception {
errorTexts.put(ExceptionType.IllegalTokenError, "Unknown or illegal token %s found.");
errorTexts.put(ExceptionType.SyntaxError, "Unexpected %s.");
errorTexts.put(ExceptionType.TypeError, "Incompatible types %s and %s.");
- errorTexts.put(ExceptionType.ExpectedTokenError, "Token '%s' expects a different token stack.");
+ errorTexts.put(ExceptionType.ExpectedDifferentTokenError, "Token '%s' expects a different token stack.");
errorTexts.put(ExceptionType.FunctionArgumentError, "The parameter list given to function %s is either of wrong length or the parameters are of wrong type. Actual: %s");
errorTexts.put(ExceptionType.UndeclaredSymbolError, "No symbol %s defined, parameters: [%s].");
errorTexts.put(ExceptionType.IncludeError, "File %s could not be included.");
@@ -52,7 +52,7 @@ public class TunkkiError extends Exception {
if (line == -1) {
return "\n" + message;
} else {
- return String.format("\nline %d: ", line) + message;
+ return String.format("\nLine #%d: ", line) + message;
}
}