54 reader->process(); |
54 reader->process(); |
55 |
55 |
56 resultCode = CLI::EXIT_CODE_SUCCESS; |
56 resultCode = CLI::EXIT_CODE_SUCCESS; |
57 |
57 |
58 } catch (RelpipeCLIException& e) { |
58 } catch (RelpipeCLIException& e) { |
59 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str()); |
59 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str()); |
60 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
60 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
61 resultCode = e.getExitCode(); |
61 resultCode = e.getExitCode(); |
62 } catch (RelpipeReaderException& e) { |
62 } catch (RelpipeReaderException& e) { |
63 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str()); |
63 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessage().c_str()); |
64 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
64 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
65 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
65 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
66 } catch (SchemeException& e) { |
66 } catch (SchemeException& e) { |
67 fwprintf(stderr, L"Caught Scheme exception: %ls\n", e.getMessge().c_str()); |
67 fwprintf(stderr, L"Caught Scheme exception: %ls\n", e.getMessage().c_str()); |
68 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
68 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
69 resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; |
69 resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; |
70 } |
70 } |
71 |
71 |
72 exit(resultCode); |
72 exit(resultCode); |