Skip to content

Commit

Permalink
Handle case of invalid trace command line option
Browse files Browse the repository at this point in the history
- This fix came to light through issue Trepan-Debuggers#40 'remake -xn isn't the same
   as remake -nx'
- Added a check for invalid tracing option (-x|--trace)
  • Loading branch information
boretom committed Feb 9, 2020
1 parent 8630dee commit f1f4d62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ decode_trace_flags (stringlist_t *ppsz_tracing_opts)
db_level = DB_BASIC | DB_TRACE;
else if (0 == strcmp(*p, "read"))
db_level |= DB_READ_MAKEFILES;
else
OS ( fatal, NILF, _("unknown trace command execution type `%s'"), *p);
}
}
}
Expand Down

0 comments on commit f1f4d62

Please sign in to comment.