diff options
Diffstat (limited to 'linux/main.cpp')
-rw-r--r-- | linux/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/main.cpp b/linux/main.cpp index bee52d9014..ec4dd49571 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -44,6 +44,10 @@ int main(int argc, char *argv[]) { // read default stylesheet from disk std::ifstream stylefile("./style.min.js"); + if (!stylefile.good()) { + fprintf(stder, "Cannot read style file\n"); + return 1; + } std::stringstream stylejson; stylejson << stylefile.rdbuf(); |