Skip to content

Commit 843e7ff

Browse files
committed
Switch to throw an exception
1 parent bc22b52 commit 843e7ff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

api/src/org/labkey/api/settings/OptionalFeatureFlag.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ public OptionalFeatureFlag(String flag, String title, String description, boolea
4444
}
4545
else
4646
{
47-
// TODO: Switch to throw IllegalStateException
48-
LOG.error(_flag + " is not a valid Java identifier. Correct it so it can be used as a startup property. Or set useDumbName to true.", new IllegalStateException());
49-
_propertyName = null;
47+
throw new IllegalStateException(_flag + " is not a valid Java identifier. Correct it so it can be used as a startup property. Or set useDumbName to true.");
5048
}
5149
}
5250
else

0 commit comments

Comments
 (0)