59 reader->process(); |
59 reader->process(); |
60 |
60 |
61 resultCode = CLI::EXIT_CODE_SUCCESS; |
61 resultCode = CLI::EXIT_CODE_SUCCESS; |
62 |
62 |
63 } catch (RelpipeCLIException e) { |
63 } catch (RelpipeCLIException e) { |
64 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessge().c_str()); |
64 fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str()); |
65 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
65 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
66 resultCode = e.getExitCode(); |
66 resultCode = e.getExitCode(); |
67 } catch (RelpipeReaderException e) { |
67 } catch (RelpipeReaderException e) { |
68 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessge().c_str()); |
68 fwprintf(stderr, L"Caught Reader exception: %ls\n", e.getMessage().c_str()); |
69 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
69 fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount()); |
70 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
70 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
71 } catch (JackException e) { |
71 } catch (JackException e) { |
72 fwprintf(stderr, L"Error while generating Jack: %ls\n", e.getMessge().c_str()); |
72 fwprintf(stderr, L"Error while generating Jack: %ls\n", e.getMessage().c_str()); |
73 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
73 resultCode = CLI::EXIT_CODE_DATA_ERROR; |
74 } |
74 } |
75 |
75 |
76 return resultCode; |
76 return resultCode; |
77 } |
77 } |