diff options
Diffstat (limited to 'treesource.c')
-rw-r--r-- | treesource.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/treesource.c b/treesource.c index 3c24e7f..468d6b1 100644 --- a/treesource.c +++ b/treesource.c @@ -36,9 +36,11 @@ struct boot_info *dt_from_source(const char *fname) yyin = srcpos_file->file; if (yyparse() != 0) - return NULL; + die("Unable to parse input tree\n"); + + if (treesource_error) + die("Syntax error parsing input tree\n"); - the_boot_info->error = treesource_error; return the_boot_info; } |