summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDmitry Atamanov <data-man@users.noreply.github.com>2018-05-19 18:32:18 +0300
committerGitHub <noreply@github.com>2018-05-19 18:32:18 +0300
commit94c45136eae6c47321414352d50a680c4312b729 (patch)
tree6c302e0117b046acca3424968db0978ceccdc660 /lib
parent04ddd069a1b3315dc0e323d98fefd621d1430a4d (diff)
downloadNim-94c45136eae6c47321414352d50a680c4312b729.tar.gz
Fixes #6832 (#7813)
Fixes #6832
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 5781aff27..06c4f103b 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3808,7 +3808,9 @@ template doAssert*(cond: bool, msg = "") =
   bind instantiationInfo
   {.line: instantiationInfo().}:
     if not cond:
-      raiseAssert(astToStr(cond) & ' ' & msg)
+      raiseAssert(astToStr(cond) & ' ' &
+                  instantiationInfo(-1, false).fileName & '(' &
+                  $instantiationInfo(-1, false).line & ") " & msg)
 
 iterator items*[T](a: seq[T]): T {.inline.} =
   ## iterates over each item of `a`.
k/mu/commit/html/real-files.mu.html?h=hlt&id=9e751bb8c0cdf771d34c839cb6591d892b8e62de'>9e751bb8 ^
e5c11a51 ^
d990e8f0 ^
4a39d12d ^
d990e8f0 ^
e5c11a51 ^
d990e8f0 ^





e5c11a51 ^






















d990e8f0 ^


e5c11a51 ^
d990e8f0 ^
204dae92 ^




97eb971b ^
204dae92 ^







124c6764 ^
204dae92 ^


d990e8f0 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79