summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-04-21 23:19:34 +0200
committerGitHub <noreply@github.com>2020-04-21 23:19:34 +0200
commit1b6c4ed2ba29f855b47ff295515b54c9ae4edafa (patch)
tree230c815d64e8113ced6a433ab476d6a178e6c1f5
parent5608a4e57b521f2a31b35b4c7f905a87b6e7b0aa (diff)
downloadNim-1b6c4ed2ba29f855b47ff295515b54c9ae4edafa.tar.gz
fixes #14052 [backport:1.2] (#14055)
-rw-r--r--compiler/lineinfos.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/lineinfos.nim b/compiler/lineinfos.nim
index 658863676..9c10105b1 100644
--- a/compiler/lineinfos.nim
+++ b/compiler/lineinfos.nim
@@ -87,7 +87,8 @@ const
     warnWriteToForeignHeap: "write to foreign heap",
     warnUnsafeCode: "unsafe code: '$1'",
     warnUnusedImportX: "imported and not used: '$1'",
-    warnInheritFromException: "inherit from a more precise exception type like ValueError, IOError or OSError",
+    warnInheritFromException: "inherit from a more precise exception type like ValueError, " &
+      "IOError or OSError. If these don't suit, inherit from CatchableError or Defect.",
     warnEachIdentIsTuple: "each identifier is a tuple",
     warnUnsafeSetLen: "setLen can potentially expand the sequence, " &
                       "but the element type '$1' doesn't have a valid default value",