Skip to content

Commit

Permalink
fix typo in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Oblarg committed Jun 3, 2019
1 parent 525d30e commit 711bf5c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/src/main/java/io/github/oblarg/oblog/NTContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public SimpleWidgetWrapper add(String title, Object defaultValue) {
try {
return new NTSimpleWidget(table.getEntry(title), defaultValue);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
table.getPath());
}
}
Expand All @@ -36,7 +36,7 @@ public ComplexWidgetWrapper add(String title, Sendable defaultValue) {
try {
return new NTComplexWidget(table, title, defaultValue);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
table.getPath());
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/src/main/java/io/github/oblarg/oblog/NTLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public SimpleWidgetWrapper add(String title, Object defaultValue) {
try {
return new NTSimpleWidget(table.getEntry(title), defaultValue);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
table.getPath());
}
}
Expand All @@ -43,7 +43,7 @@ public ComplexWidgetWrapper add(String title, Sendable defaultValue) {
try {
return new NTComplexWidget(table, title, defaultValue);
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
table.getPath());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public SimpleWidgetWrapper add(String title, Object defaultValue) {
try {
return new WrappedSimpleWidget(container.add(title, defaultValue));
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
container.getTitle());
}
}
Expand All @@ -36,7 +36,7 @@ public ComplexWidgetWrapper add(String title, Sendable defaultValue) {
try {
return new WrappedComplexWidget(container.add(title, defaultValue));
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
container.getTitle());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public SimpleWidgetWrapper add(String title, Object defaultValue) {
try {
return new WrappedSimpleWidget(layout.add(title, defaultValue));
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
layout.getTitle());
}
}
Expand All @@ -38,7 +38,7 @@ public ComplexWidgetWrapper add(String title, Sendable defaultValue) {
try {
return new WrappedComplexWidget(layout.add(title, defaultValue));
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException("Error! Attempted to log duplicate widget + " + title + " in container " +
throw new IllegalArgumentException("Error! Attempted to log duplicate widget " + title + " in container " +
layout.getTitle());
}
}
Expand Down

0 comments on commit 711bf5c

Please sign in to comment.