diff --git a/app/coffee/RequestParser.coffee b/app/coffee/RequestParser.coffee index cabbac3..b887ed3 100644 --- a/app/coffee/RequestParser.coffee +++ b/app/coffee/RequestParser.coffee @@ -87,7 +87,7 @@ module.exports = RequestParser = throw "resource modified date could not be understood: #{resource.modified}" if !resource.url? and !resource.content? - throw "all resources should have either a url or content attribute" + throw "all resources should have either a url or content attribute" if resource.content? and typeof resource.content != "string" throw "content attribute should be a string" if resource.url? and typeof resource.url != "string"