Browse files

Fix typo in callback for file:// resource error

  • Loading branch information...
1 parent 29d4dfd commit f9317151b87a2e0fa9c9ddb639055f2b4be6842e @bfirsh bfirsh committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zombie/resources.coffee
View
2 lib/zombie/resources.coffee
@@ -234,7 +234,7 @@ class Resources extends Array
FS.readFile Path.normalize(url.pathname), (error, data)=>
# Fallback with error -> callback
if error
- callback err
+ callback error
else
# Turn body from string into a String, so we can add property getters.
resource.response = new HTTPResponse(url, 200, {}, String(data))

0 comments on commit f931715

Please sign in to comment.