Skip to content
Snippets Groups Projects
Commit e51f4cf9 authored by stepan's avatar stepan
Browse files

Limit the number of warnings put into environment

parent c34c2bc8
No related branches found
No related tags found
No related merge requests found
......@@ -695,7 +695,8 @@ public class RErrorHandling {
if (nWarnings < errorHandlingState.maxWarnings) {
Utils.writeStderr(String.format("There were %d warnings (use warnings() to see them)", nWarnings), true);
} else {
Utils.writeStderr(String.format("There were %d or more warnings (use warnings() to see the first %d)", errorHandlingState.maxWarnings, errorHandlingState.maxWarnings), true);
nWarnings = errorHandlingState.maxWarnings;
Utils.writeStderr(String.format("There were %d or more warnings (use warnings() to see the first %d)", nWarnings, nWarnings), true);
}
}
Object[] wData = new Object[nWarnings];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment