diff --git a/src/ExprNode.cc b/src/ExprNode.cc
index a295ba1109e4891cc17e3ea56a9f0fbf4ac58331..de9fabb23a1a9902299d7ce093ead4cac85f4551 100644
--- a/src/ExprNode.cc
+++ b/src/ExprNode.cc
@@ -8592,6 +8592,9 @@ PacExpectationNode::writeOutput(ostream &output, ExprNodeOutputType output_type,
       output << "PAC_EXPECTATION" << LEFT_PAR(output_type) << model_name << RIGHT_PAR(output_type);
       return;
     }
+
+  cerr << "PacExpectationNode::writeOutput not implemented for non-LaTeX." << endl;
+  exit(EXIT_FAILURE);
 }
 
 int
@@ -8679,6 +8682,9 @@ PacTargetNonstationaryNode::writeOutput(ostream &output, ExprNodeOutputType outp
       output << "PAC_TARGET_NONSTATIONARY" << LEFT_PAR(output_type) << model_name << RIGHT_PAR(output_type);
       return;
     }
+
+  cerr << "PacTargetNonstationaryNode::writeOutput not implemented for non-LaTeX." << endl;
+  exit(EXIT_FAILURE);
 }
 
 int