summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNick Greenfield <boyd.greenfield@gmail.com>2016-01-18 20:58:03 -0800
committerNick Greenfield <boyd.greenfield@gmail.com>2016-01-21 13:49:13 -0800
commit5e8762c21e63c78939688f982b8c4721ac2eed07 (patch)
tree7999f5f0f3702cd13dbd4e83bf2f5e41650c7d9b
parent91adc84cf3cebe9f14d84aea639e46bae4b3a5dc (diff)
downloadNim-5e8762c21e63c78939688f982b8c4721ac2eed07.tar.gz
Improve warning msg when -d:profiler not passed
Partially addresses #3741
-rw-r--r--lib/pure/nimprof.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/nimprof.nim b/lib/pure/nimprof.nim
index e2397b91c..5a7deaab0 100644
--- a/lib/pure/nimprof.nim
+++ b/lib/pure/nimprof.nim
@@ -12,7 +12,7 @@
 ## report at program exit.
 
 when not defined(profiler) and not defined(memProfiler):
-  {.warning: "Profiling support is turned off!".}
+  {.error: "Profiling support is turned off! Enable profiling by passing `--profiler:on --stackTrace:on` to the compiler (see the Nim Compiler User Guide for more options).".}
 
 # We don't want to profile the profiling code ...
 {.push profiler: off.}