Skip to content

Commit

Permalink
compiler: use homogeneous location message for panics
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Apr 4, 2024
1 parent 707ebf2 commit dbc2fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/julec/obj/cxx/object.jule
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ impl ObjectCoder {
if env::PRODUCTION {
self.write(" { jule::panic(__JULE_ERROR__INVALID_MEMORY); }\n")
} else {
self.write(" { jule::panic(" + TypeCoder.Str + "(__JULE_ERROR__INVALID_MEMORY \"\\nfile: \") + " + TypeCoder.Str + "(_00___file)); }\n")
self.write(" { jule::panic(" + TypeCoder.Str + "(__JULE_ERROR__INVALID_MEMORY \"\\nlocation: \") + " + TypeCoder.Str + "(_00___file)); }\n")
}
continue
}
Expand Down

0 comments on commit dbc2fa3

Please sign in to comment.