From c1366309c91a7a59bcc6776a2a64a6ed1c0fd2d5 Mon Sep 17 00:00:00 2001 From: tkawata Date: Fri, 1 Jun 2012 08:19:54 +0900 Subject: [PATCH] Improved error checking. Treat error for the cells which don't have the specific cellcode. --- Source/DNContainerBuilder.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/DNContainerBuilder.cpp b/Source/DNContainerBuilder.cpp index 28fa65f..6bc7139 100644 --- a/Source/DNContainerBuilder.cpp +++ b/Source/DNContainerBuilder.cpp @@ -274,7 +274,15 @@ void DNContainerBuilder::parseXHTML(const char *docRoot, const char *path) } else { - defineCellWithoutCellCodeClass(path, cellName, cellAPIType, script); + if (cellAPIType.length() > 0) + { + defineCellWithoutCellCodeClass(path, cellName, cellAPIType, script); + } + else + { + std::string message = std::string("Syntax error while parsing ").append(path).append(". cellName:'").append(cellName).append("'\nFaield to determin the cellcode.\nThe cellcode isn't defined for the cell?"); + dnNotifyError("Initialization failed", message); + } } cellName = ""; -- 2.11.0