diff options
| -rw-r--r-- | std/string.zc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/string.zc b/std/string.zc index c3bf4ac..e45d399 100644 --- a/std/string.zc +++ b/std/string.zc @@ -58,7 +58,7 @@ impl String { fn substring(self, start: usize, len: usize) -> String { if (start + len > self.length()) { - printf("Panic: substring out of bounds\n"); + fprintf(stderr, "%s:%d (%s): Panic: substring out of bounds\n", __FILE__, __LINE__, __func__); exit(1); } var v = Vec<char>::new(); |
