diff --git a/trainer.h b/trainer.h
index 9070c7159e2e124082327ab8e4cca43f7f467886..24988c421ea3df307cb18047bdc2b96cd8c23dd2 100644
--- a/trainer.h
+++ b/trainer.h
@@ -215,7 +215,7 @@ class MPI_Trainer: public Trainer {
     void solve() {
 
       if (PHI_cols>PHI_rows) {
-          throw std::runtime_error("MPI solver requires M > N")
+          throw std::runtime_error("MPI solver requires M > N");
       }
 
       // Descriptors for scalaPACK