Skip to content

Commit

Permalink
Fix: "syntax" displayed twice in syntax error diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
positively-charged committed Dec 9, 2016
1 parent b832d6d commit af459eb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,6 @@ void init_diag_msg( struct task* task, struct diag_msg* msg, int flags,
str_append( &msg->text, "internal " );
}
if ( flags & DIAG_ERR ) {
if ( flags & DIAG_SYNTAX ) {
str_append( &msg->text, "syntax " );
}
str_append( &msg->text, "error: " );
}
else if ( flags & DIAG_WARN ) {
Expand Down

0 comments on commit af459eb

Please sign in to comment.