avoid a crash in directives
authorceriel <none@none>
Tue, 24 Apr 1990 14:07:07 +0000 (14:07 +0000)
committerceriel <none@none>
Tue, 24 Apr 1990 14:07:07 +0000 (14:07 +0000)
lang/pc/comp/def.c

index 861acc9..d1f3e9a 100644 (file)
@@ -142,8 +142,9 @@ DoDirective(directive, nd, tp, scl, function)
                        break;
 
                default:
-                       crash("(DoDirective)");
-                       /* NOTREACHED */
+                       node_error(nd, "\"%s\" unknown directive",
+                                                       directive->id_text);
+                       return;
        }
 
        if( df = define(nd->nd_IDF, CurrentScope, kind) )       {