diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-01-31 17:36:15 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-01-31 17:36:15 +0300 |
commit | eac37c6a45837f7ea717c9fed8cb21e2d5665618 (patch) | |
tree | d09a2c645baf2ab043762856aacc9111be221f99 /examples/error.cpp | |
parent | 0be032c6998e712dc2c9f2ed97c3491d89eb05af (diff) | |
download | xift-eac37c6a45837f7ea717c9fed8cb21e2d5665618.tar xift-eac37c6a45837f7ea717c9fed8cb21e2d5665618.tar.xz xift-eac37c6a45837f7ea717c9fed8cb21e2d5665618.zip |
[xift] Working.
Diffstat (limited to 'examples/error.cpp')
-rw-r--r-- | examples/error.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/error.cpp b/examples/error.cpp index 54bb17d..72c5bfe 100644 --- a/examples/error.cpp +++ b/examples/error.cpp @@ -7,13 +7,14 @@ int main() XiftFile exporter(stdout); Xift xift(exporter); - xift.permitted.Tag("p").Attribute("class"); + xift.Tag("p").Attribute("class"); xift.PutFile("error.html"); if (!xift.End()) { printf("Error on %d line, %d column:\n%s", - xift.ErrorLine(), xift.ErrorColumn(), xift.Error()); + xift.ErrorLine(), xift.ErrorColumn(), + xift_error_message(xift.GetError())); } return 0; |