Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
dd7f509e
Commit
dd7f509e
authored
Jan 05, 2014
by
Arian Stolwijk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #207 - Handle CLI errors, and exit with code 1 if there are errors
parent
10018d90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
cli.js
lib/cli.js
+4
-1
render.js
lib/render.js
+1
-1
No files found.
lib/cli.js
View file @
dd7f509e
...
...
@@ -71,7 +71,10 @@ exports = module.exports = function(args) {
var
emitter
=
new
Emitter
();
emitter
.
on
(
'error'
,
function
(){});
emitter
.
on
(
'error'
,
function
(
err
){
console
.
error
(
err
);
process
.
exit
(
1
);
});
var
options
=
{
stdout
:
argv
.
stdout
...
...
lib/render.js
View file @
dd7f509e
...
...
@@ -45,7 +45,7 @@ function render(options, emitter) {
emitter
.
emit
(
'render'
,
css
);
},
error
:
function
(
error
)
{
emitter
.
emit
(
'error'
,
error
);
emitter
.
emit
(
'error'
,
chalk
.
red
(
error
)
);
}
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment