Browse Source

Corrected syntax for try...catch

tags/v0.2.0
Muthu Kumar 7 years ago
parent
commit
fa391e69f3
  1. 2
      README.md
  2. 2
      index.js
  3. 2
      package.json

2
README.md

@ -8,7 +8,7 @@
# up # up
> Current version: `up v.0.1.2 (Pre-Alpha)` > Current version: `up v.0.1.3 (Pre-Alpha)`
> Notes: `up` has landed in pre-alpha! 🎉 Changelog will be added from `up v.0.2.0` [(Alpha/MVP)](Roadmap.md)\ > Notes: `up` has landed in pre-alpha! 🎉 Changelog will be added from `up v.0.2.0` [(Alpha/MVP)](Roadmap.md)\
> ⚠️ ❌ `up` is still not ready for use yet! Do not attempt to use this in development or production until alpha! > ⚠️ ❌ `up` is still not ready for use yet! Do not attempt to use this in development or production until alpha!

2
index.js

@ -78,6 +78,6 @@ try {
exec("nginx -t && service reload nginx"); exec("nginx -t && service reload nginx");
} }
catch { catch (e) {
console.log("nginx configuration failed! Unable to reload nginx. Check configuration manually!") console.log("nginx configuration failed! Unable to reload nginx. Check configuration manually!")
} }

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "up-serve", "name": "up-serve",
"version": "0.1.2", "version": "0.1.3",
"description": "A cli tool to quickly create and manage nginx server blocks.", "description": "A cli tool to quickly create and manage nginx server blocks.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

Loading…
Cancel
Save