Skip to content

metanorma site generate ignore errors collected on compile #301

@CAMOBAP

Description

@CAMOBAP

Intro

During investigation of mn2pdf fatal error I have noted that metanorma finishes successfully in case of Fatal: ... errors

Problem

Compiler::compile_file returns an array of fatal errors which is ignored:

select_source_files.each { |source| compile(source) }

Proposed solution

  • exit code must not be zero if we faced a fatal error
  • print fatal error by the end of site generation

@opoudjis @ronaldtse I would like to get your feedback on proposed solution

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status

🌋 Urgent

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions