Index: branches/release-35/lib/MT/CMS/Template.pm
===================================================================
--- branches/release-35/lib/MT/CMS/Template.pm (revision 1891)
+++ branches/release-35/lib/MT/CMS/Template.pm (revision 1913)
@@ -147,4 +147,17 @@
                         }
                     );
+                    # Try to compile template module if using MTInclude in this template.
+                    $other->compile;
+                    if ( $other->{errors} && @{ $other->{errors} } ) {
+                        $param->{error} = $app->translate(
+                            "One or more errors were found in included template module (".$other->name.").");
+                        $param->{error} .= "<ul>\n";
+                        foreach my $err ( @{ $other->{errors} } ) {
+                            $param->{error} .= "<li>"
+                              . MT::Util::encode_html( $err->{message} )
+                              . "</li>\n";
+                        }
+                        $param->{error} .= "</ul>\n";
+                    }
                 }
                 else {
