vsc_error_fprint (struct VscError *error, FILE *stream)
{
struct tm time_info;
+ struct VscError *relevant = NULL;
VSC__ASSERT (error != NULL);
VSC__ASSERT (error->occured);
localtime_r (&error->timestamp.tv_sec, &time_info);
- fprintf (stream, "%02d:%02d:%02d.%03d %s:%d %s : Error [%s]",
+ relevant = vsc_error_get_relevant (error);
+
+ fprintf (stream, "%02d:%02d:%02d.%03d %c %s:%d %s : Error [%s]",
time_info.tm_hour, time_info.tm_min, time_info.tm_sec,
- (int) error->timestamp.tv_usec / 1000, error->file,
- error->line, error->function,
- vsc_error_string (error->code));
+ (int) error->timestamp.tv_usec / 1000,
+ relevant == error ? '>' : ' ', error->file, error->line,
+ error->function, vsc_error_string (error->code));
if (error->message != NULL) {
fprintf (stream, " %s\n", error->message);