Skip to content

Commit

Permalink
For #2837, allow warnings when compiling expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Aug 2, 2019
1 parent e10938c commit a92f3b0
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -240,8 +240,9 @@ private void flagError(final String s, final String code, final boolean warning,
// the source
// (i.e. we are probably in a runtime scenario)
if (e == null || e.eResource() == null || e.eResource().getURI().path().contains(SYNTHETIC_RESOURCES_PREFIX)) {
throw warning ? GamaRuntimeException.warning(s, msi.gama.runtime.GAMA.getRuntimeScope())
: GamaRuntimeException.error(s, msi.gama.runtime.GAMA.getRuntimeScope());
if (!warning && !info) { throw GamaRuntimeException.error(s, msi.gama.runtime.GAMA.getRuntimeScope()); }
return;

}
final ValidationContext c = getValidationContext();
if (c == null) {
Expand Down

0 comments on commit a92f3b0

Please sign in to comment.