only:better parameter name

This commit is contained in:
Andrey 2023-07-20 13:45:38 -04:00
parent 6bd6d98e1c
commit 5c8939637d
1 changed files with 6 additions and 3 deletions

View File

@ -200,17 +200,20 @@ public class VariableRegistry {
return line;
}
public void register(String var, String param) {
public void register(String var, String rawValue) {
try {
String value = doRegister(var, param);
String value = doRegister(var, rawValue);
if (value == null)
return;
tryToRegisterAsInteger(var, value);
} catch (RuntimeException e) {
throw new IllegalStateException("While [" + var + "][" + param + "]", e);
throw new IllegalStateException("While [" + var + "][" + rawValue + "]", e);
}
}
/**
* @return input value with template variables applied
*/
@Nullable
private String doRegister(String var, String value) {
if (data.containsKey(var)) {