- if (get_errorbreak () && error_count)
- msg (MN, _("Terminating execution of syntax file due to error."));
- else if (error_count > get_mxerrs() )
- msg (MN, _("Errors (%d) exceeds limit (%d)."),
- error_count, get_mxerrs());
- else if (error_count + warning_count > get_mxwarns() )
+ int max_errors = settings_get_max_messages (MSG_S_ERROR);
+ int max_warnings = settings_get_max_messages (MSG_S_WARNING);
+
+ if (error_count > max_errors)
+ msg (MN, _("Errors (%d) exceed limit (%d)."),
+ error_count, max_errors);
+ else if (error_count + warning_count > max_warnings)