mirror of https://github.com/KLayout/klayout.git
Added missing file.
This commit is contained in:
parent
0cc41f43c4
commit
e8c9ae4012
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
def f
|
||||||
|
raise("An error")
|
||||||
|
end
|
||||||
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
# %include b_inc.rb
|
||||||
|
|
||||||
|
begin
|
||||||
|
puts f
|
||||||
|
rescue => ex
|
||||||
|
ln = ex.backtrace[0].split(":")
|
||||||
|
# NOTE: as the backtrace is a native Ruby feature, include file translation
|
||||||
|
# does not happen. We need to do this explicitly here:
|
||||||
|
puts ex.to_s + " in " + RBA::Macro::real_path(ln[0], ln[1].to_i) + ":" + RBA::Macro::real_line(ln[0], ln[1].to_i).to_s
|
||||||
|
end
|
||||||
|
|
||||||
Loading…
Reference in New Issue