diff options
author | corvid <corvid@lavabit.com> | 2012-09-14 18:49:37 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-09-14 18:49:37 +0000 |
commit | 2524d443bb08d9df7e823ebebb1b33c8c1948fa0 (patch) | |
tree | 1cab6ce18a575e40b17de54d65b7bdb078deb45f /src/table.cc | |
parent | 73119ba8fc98a13e7f406d45dc733f7a55974b96 (diff) |
make a few BUG_MSGs more informative
Diffstat (limited to 'src/table.cc')
-rw-r--r-- | src/table.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/table.cc b/src/table.cc index d66b32b0..27de6bfc 100644 --- a/src/table.cc +++ b/src/table.cc @@ -349,11 +349,13 @@ static void Html_tag_open_table_cell(DilloHtml *html, switch (S_TOP(html)->table_mode) { case DILLO_HTML_TABLE_MODE_NONE: - BUG_MSG("<td> or <th> outside <table>\n"); + BUG_MSG("<t%c> outside <table>\n", + (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); return; case DILLO_HTML_TABLE_MODE_TOP: - BUG_MSG("<td> or <th> outside <tr>\n"); + BUG_MSG("<t%c> outside <tr>\n", + (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); /* a_Dw_table_add_cell takes care that dillo does not crash. */ /* continues */ case DILLO_HTML_TABLE_MODE_TR: @@ -402,7 +404,8 @@ static void Html_tag_content_table_cell(DilloHtml *html, return; case DILLO_HTML_TABLE_MODE_TOP: - BUG_MSG("<td> or <th> outside <tr>\n"); + BUG_MSG("<t%c> outside <tr>\n", + (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); /* a_Dw_table_add_cell takes care that dillo does not crash. */ /* continues */ case DILLO_HTML_TABLE_MODE_TR: |