Improve the "Stack space overflow" error; fixes trac #3296
authorIan Lynagh <igloo@earth.li>
Wed, 19 Aug 2009 20:21:12 +0000 (20:21 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 19 Aug 2009 20:21:12 +0000 (20:21 +0000)
rts/hooks/StackOverflow.c

index 0a1a23a..4313702 100644 (file)
@@ -12,6 +12,6 @@
 void
 StackOverflowHook (lnat stack_size)    /* in bytes */
 {
-    fprintf(stderr, "Stack space overflow: current size %ld bytes.\nUse `+RTS -Ksize' to increase it.\n", stack_size);
+    fprintf(stderr, "Stack space overflow: current size %ld bytes.\nUse `+RTS -Ksize -RTS' to increase it.\n", stack_size);
 }