Browse Source

Well that was pretty dumb. Thanks Jeff for debugging.

Caleb James DeLisle 4 years ago
parent
commit
c22ff3ff09
1 changed files with 1 additions and 0 deletions
  1. 1 0
      exception/Er.c

+ 1 - 0
exception/Er.c

@@ -44,6 +44,7 @@ struct Er_Ret* Er__raise(char* file, int line, struct Allocator* alloc, char* fo
         snprintf(buf, len, "%s:%d ", file, line);
         vsnprintf(&buf[written], len - written, format, args);
         struct Er_Ret* res = Allocator_calloc(alloc, sizeof(struct Er_Ret), 1);
+        res->message = buf;
         va_end(args);
         return res;
     } else {