Comments (3)
Here is what I think makes sense. Greg, let me know if you agree:
- if _main returns undefined --> process.exit(0)
- if _main throws exception --> process.exit(1)
- if _main returns an integer n >= 0 --> process.exit(n)
- otherwise --> process.exit(0) ??? (like a string value returned? Maybe warn and print that string?)
Assign back to me after you reply
from carbond.
i think we should probably use an exit code of 1 in the case that we get something unexpected back from _main, that way, if the user isn't monitoring the output of their application, they have other avenues to be alerted that something is amiss.
from carbond.
Done. Should later move sig handlers to atom:
from carbond.
Related Issues (20)
- Should pre and post<OperationName>Operation be _post<OperationName>Operation? HOT 2
- pre/post Operation hook arguments have confusing nomenclature
- ensure 500 responses are sanitized on result validation failure when not in development mode HOT 1
- Collapsible left nav HOT 1
- Exit code zero given on failed include in a fiber
- schema requires id does not tell you which schema is missing the id
- move cmdargs into the constructor and require using `atom`'s operators (`$merge`, etc)
- idPathParameter cannot contain dashes
- Collection / Service Generator HOT 1
- add context argument to pass data between collection hooks/handlers
- invalid JSON results in a 500 instead of a 400
- List all registered endpoints
- Disable CORS on an individual endpoint
- Endpoint response HTTP codes invalid in aglio docs
- Enhanced schema descriptions HOT 2
- Error: request entity too large HOT 5
- warn if type "string" not specified with enum in JSON schema
- Revisit generated descriptions for request body and response body HOT 2
- Determine if request and response body descriptions can be separated at rendering time HOT 1
- Add ability to include code examples per operation response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbond.