Skip to content
This repository was archived by the owner on Sep 23, 2020. It is now read-only.
This repository was archived by the owner on Sep 23, 2020. It is now read-only.

Build not failing on node process error? #71

@leomp12

Description

@leomp12

About me

  • My name: Leonardo Matos
  • I've used Netlify: lots

My question in a little more detail

I'm deploying an EJS based template, this template uses axios and some of the request promises haven't rejection handlers intentionally, because if it fails I just want to exit the process with failure.

In a recent build it fires the following error:

11:10:15 AM: Error: /opt/build/repo/template/pages/#categories.ejs:26
11:10:15 AM:     24|       <%- await include('@custom-html/categories/append-top', { _ }) %>
11:10:15 AM:     25|
11:10:15 AM:  >> 26|       <%- await include(`@/views/categories`, { _ }) %>
11:10:15 AM:     27|
11:10:15 AM:     28|       <%- await include('@custom-html/append-bottom', { _ }) %>
11:10:15 AM:     29|       <%- await include('@custom-html/categories/append-bottom', { _ }) %>
11:10:15 AM: /opt/build/repo/template/pages/@/views/categories.ejs:62
11:10:15 AM:     60|     <div class="cat container py-1 py-sm-2 py-lg-4">
11:10:15 AM:     61|       <% if (Array.isArray(pageCategories.showcase) && pageCategories.showcase.length) { %>
11:10:15 AM:  >> 62|         <%
11:10:15 AM:     63|         for (let i = 0; i < pageCategories.showcase.length; i++) {
11:10:15 AM:     64|           const shelf = pageCategories.showcase[i]
11:10:15 AM:     65|           // get collection body
11:10:15 AM: read ECONNRESET

Then it stops deploying the template, but the build process successfully ended anyway, why?
The site was published without many pages because the deployment was interrupted 😞

Shouldn't the build have failed? 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions