[NPMBUILD-12] in case of fatal error, exit with error code and print to stderr Created: 26/Nov/16  Updated: 05/Dec/16  Resolved: 28/Nov/16

Status: Closed
Project: Magnolia light-module build tools
Component/s: None
Affects Version/s: None
Fix Version/s: 0.5.2

Type: Improvement Priority: Neutral
Reporter: Robert Kowalski Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File exit-error-code.patch    
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Testcase included:
Yes
Date of First Response:
Sprint: Basel 72
Story Points: 1

 Description   

In case of a fatal error which exits the CLI we want to provide
an exit code. This makes writing software based on the command
line tool easier.

Additionally we print errors on stderr instead of stdout, which is
also important for error processing and piping, e.g. on a shell.



 Comments   
Comment by Robert Kowalski [ 26/Nov/16 ]

Oh quick question:

which Node versions are currently supported by both command line tools?

Comment by Federico Grilli [ 28/Nov/16 ]

Our docs state that Node 4.5 or greater is required https://documentation.magnolia-cms.com/display/DOCS/Magnolia+CLI#MagnoliaCLI-Prerequisite:Node.js
Our Jenkins build is actually set to use 4.2.6 LTS and I have a feeling that even earlier versions could work fine too but I'd need to investigate further.

Generated at Mon Feb 12 06:00:57 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.