lib/ecoportal/api/v2/pages.rb in ecoportal-api-oozes-0.5.6 vs lib/ecoportal/api/v2/pages.rb in ecoportal-api-oozes-0.5.7

- old
+ new

@@ -39,10 +39,10 @@ if (response.status == 302) && (url = response.body["data"]) if sid = url_to_stage_id(url) return stages.get(pid: pid, sid: sid) end end - raise "Could not get page #{id} - Error #{response.status}: #{response.body}" + raise "Could not get page #{pid} - Error #{response.status}: #{response.body}" end # Gets a `new` non-existing page via api with all the ids initialized. # @param from [String, Hash, Page] template or `id` of the template # @return [Ecoportal::API::V2::Page] the new page object.