summaryrefslogtreecommitdiff
path: root/rts/ProfHeap.c
diff options
context:
space:
mode:
Diffstat (limited to 'rts/ProfHeap.c')
-rw-r--r--rts/ProfHeap.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c
index ba1adcd5d0..25112a7e1e 100644
--- a/rts/ProfHeap.c
+++ b/rts/ProfHeap.c
@@ -280,12 +280,14 @@ nextEra( void )
era++;
if (era == max_era) {
- if (rtsConfig.rts_opts_enabled == RtsOptsAll) {
- errorBelch("maximum number of censuses reached;\n"
- "use +RTS -i to reduce");
- } else {
- errorBelch("maximum number of censuses reached;\n"
- "Relink with -rtsopts and use `+RTS -i` to reduce");
+ errorBelch("Maximum number of censuses reached.");
+ if (rtsConfig.rts_opts_suggestions == rtsTrue) {
+ if (rtsConfig.rts_opts_enabled == RtsOptsAll) {
+ errorBelch("Use `+RTS -i' to reduce censuses.");
+ } else {
+ errorBelch("Relink with -rtsopts and "
+ "use `+RTS -i' to reduce censuses.");
+ }
}
stg_exit(EXIT_FAILURE);
}