throw phantomjs error