Skip to content

Commit 6f451b2

Browse files
committed
#34 cleaned up error handling
1 parent 5c413cb commit 6f451b2

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,10 @@ module.exports = function (processors, options) {
4242
opts.map = { annotation: false }
4343
}
4444

45-
try {
46-
processors.forEach(processor.use.bind(processor))
47-
processor
48-
.process(file.contents, opts)
49-
.then(handleResult, handleError)
50-
} catch (error) {
51-
handleError(error)
52-
}
45+
processors.forEach(processor.use.bind(processor))
46+
processor
47+
.process(file.contents, opts)
48+
.then(handleResult, handleError)
5349

5450
function handleResult (result) {
5551
var map

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"homepage": "https://github.com/postcss/gulp-postcss",
2525
"dependencies": {
2626
"gulp-util": "^3.0.4",
27-
"postcss": "^4.1.0",
27+
"postcss": "^4.1.7",
2828
"vinyl-sourcemaps-apply": "^0.1.4"
2929
},
3030
"devDependencies": {

0 commit comments

Comments
 (0)