Skip to content
This repository was archived by the owner on Feb 14, 2019. It is now read-only.
This repository was archived by the owner on Feb 14, 2019. It is now read-only.

trigger function errors when .yml is named incorrectly #32

@kellyoung

Description

@kellyoung

Today, we got an alarm because the trigger function error'ed when an incorrectly named .yml file was used.

2017-11-02T18:36:28.441Z    bc7ecdd9-bffc-11e7-aba8-f192b47c1978
{
    "errorMessage": "ENOENT: no such file or directory, open '/var/task/buildspecs/node4.3.yml'",
    "errorType": "Error",
    "stackTrace": [
        "Error (native)",
        "Object.fs.openSync (fs.js:641:18)",
        "Object.fs.readFileSync (fs.js:509:33)",
        "getDefaultBuildspec (/var/task/lambda.js:318:13)",
        "githubToken.then.then.then.then (/var/task/lambda.js:396:33)",
        "process._tickDomainCallback (internal/process/next_tick.js:135:7)"
    ]
}

We should modify the trigger function so that it handles errors such as spelling errors in a different way.

cc/ @mapbox/platform

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions