error on failing to create view from CSP (#924)

This commit is contained in:
Martin Chang 2021-07-09 07:58:03 +08:00 committed by GitHub
parent a02d8e402c
commit 3b600232be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -291,7 +291,8 @@ void create_view::createViewFiles(std::vector<std::string> &cspFileNames)
for (auto const &file : cspFileNames)
{
std::cout << "create view:" << file << std::endl;
createViewFile(file);
if (createViewFile(file) != 0)
exit(1);
}
}
int create_view::createViewFile(const std::string &script_filename)