From 02fb7b7cc2f2645367aa3314da61790a4591bcc0 Mon Sep 17 00:00:00 2001 From: nitrix Date: Mon, 3 Feb 2020 22:28:21 +0100 Subject: [PATCH] unify error message appearance --- .../java/de/hsrm/compiler/Klang/ContextAnalysis.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/hsrm/compiler/Klang/ContextAnalysis.java b/src/main/java/de/hsrm/compiler/Klang/ContextAnalysis.java index 3125816..34713cc 100644 --- a/src/main/java/de/hsrm/compiler/Klang/ContextAnalysis.java +++ b/src/main/java/de/hsrm/compiler/Klang/ContextAnalysis.java @@ -273,7 +273,7 @@ public class ContextAnalysis extends KlangBaseVisitor { int col = ctx.start.getCharPositionInLine(); if (lhs.type != Type.getIntegerType() || rhs.type != Type.getIntegerType()) { - String error = "Both operants of this expression have to be a number"; + String error = "Both operants of this expression have to be a number."; throw new RuntimeException(Helper.getErrorPrefix(line, col) + error); } @@ -292,7 +292,7 @@ public class ContextAnalysis extends KlangBaseVisitor { int col = ctx.start.getCharPositionInLine(); if (lhs.type != Type.getIntegerType() || rhs.type != Type.getIntegerType()) { - String error = "Both operants of this expression have to be a number"; + String error = "Both operants of this expression have to be a number."; throw new RuntimeException(Helper.getErrorPrefix(line, col) + error); } @@ -311,7 +311,7 @@ public class ContextAnalysis extends KlangBaseVisitor { int col = ctx.start.getCharPositionInLine(); if (lhs.type != Type.getIntegerType() || rhs.type != Type.getIntegerType()) { - String error = "Both operants of this expression have to be a number"; + String error = "Both operants of this expression have to be a number."; throw new RuntimeException(Helper.getErrorPrefix(line, col) + error); } @@ -330,7 +330,7 @@ public class ContextAnalysis extends KlangBaseVisitor { int col = ctx.start.getCharPositionInLine(); if (lhs.type != Type.getIntegerType() || rhs.type != Type.getIntegerType()) { - String error = "Both operants of this expression have to be a number"; + String error = "Both operants of this expression have to be a number."; throw new RuntimeException(Helper.getErrorPrefix(line, col) + error); } @@ -349,7 +349,7 @@ public class ContextAnalysis extends KlangBaseVisitor { int col = ctx.start.getCharPositionInLine(); if (lhs.type != Type.getIntegerType() || rhs.type != Type.getIntegerType()) { - String error = "Both operants of this expression have to be a number"; + String error = "Both operants of this expression have to be a number."; throw new RuntimeException(Helper.getErrorPrefix(line, col) + error); } @@ -368,7 +368,7 @@ public class ContextAnalysis extends KlangBaseVisitor { int col = ctx.start.getCharPositionInLine(); if (lhs.type != Type.getIntegerType() || rhs.type != Type.getIntegerType()) { - String error = "Both operants of this expression have to be a number"; + String error = "Both operants of this expression have to be a number."; throw new RuntimeException(Helper.getErrorPrefix(line, col) + error); }