diff options
author | Thomas Habets <thomas@habets.se> | 2019-12-21 19:38:44 +0000 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2020-01-01 19:40:43 -0800 |
commit | 183a35ee554fd2034acbc5ac91e32abd046d5de1 (patch) | |
tree | eb77ac056d06a81c2a9e2c9f7b4901cac63077d3 /gr-trellis/lib/fsm.cc | |
parent | 24725470892c770b8f0cd5f839588a8a5125caa6 (diff) |
Remove newlines from exception messages
Diffstat (limited to 'gr-trellis/lib/fsm.cc')
-rw-r--r-- | gr-trellis/lib/fsm.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-trellis/lib/fsm.cc b/gr-trellis/lib/fsm.cc index bceed6e1ad..63c0324c79 100644 --- a/gr-trellis/lib/fsm.cc +++ b/gr-trellis/lib/fsm.cc @@ -86,12 +86,12 @@ fsm::fsm(const char* name) FILE* fsmfile; if ((fsmfile = fopen(name, "r")) == NULL) - throw std::runtime_error("fsm::fsm(const char *name): file open error\n"); + throw std::runtime_error("fsm::fsm(const char *name): file open error"); // printf("file open error in fsm()\n"); if (fscanf(fsmfile, "%d %d %d\n", &d_I, &d_S, &d_O) == EOF) { if (ferror(fsmfile) != 0) - throw std::runtime_error("fsm::fsm(const char *name): file read error\n"); + throw std::runtime_error("fsm::fsm(const char *name): file read error"); } d_NS.resize(d_I * d_S); @@ -102,7 +102,7 @@ fsm::fsm(const char* name) if (fscanf(fsmfile, "%d", &(d_NS[i * d_I + j])) == EOF) { if (ferror(fsmfile) != 0) throw std::runtime_error( - "fsm::fsm(const char *name): file read error\n"); + "fsm::fsm(const char *name): file read error"); } } } @@ -111,7 +111,7 @@ fsm::fsm(const char* name) if (fscanf(fsmfile, "%d", &(d_OS[i * d_I + j])) == EOF) { if (ferror(fsmfile) != 0) throw std::runtime_error( - "fsm::fsm(const char *name): file read error\n"); + "fsm::fsm(const char *name): file read error"); } } } @@ -450,7 +450,7 @@ void fsm::generate_TM() } if (done == false && d_S > 1) { // throw std::runtime_error ("fsm::generate_TM(): FSM appears to be - // disconnected\n"); + // disconnected"); printf("fsm::generate_TM(): FSM appears to be disconnected\n"); printf("state %d cannot be reached from all other states\n", s); } |