Closed MananJethwani closed 3 years ago
@kelson42 sorry, it wasn't working when I used -c
it was working with --c
, my bad.
@kelson42 the error for the non-readable file should be propagated by kiwix::getFileContent()
in libkiwix/tools.h
, so I couldn't do much but I am showing a warning if unreadable or empty template file is passed.
I have added errors for all other cases and exiting the code.
@MananJethwani I don't know the code detail, but it should stop, not display a warning. Probably kiwix::getFileContent()
should trigger an exception and you should catch it.
Agree with @kelson42 if the user pass a option and we cannot respect it, it should be a error.
@kelson42 this PR will add --customIndexTemplate argument.
This depends on https://github.com/kiwix/libkiwix/pull/607