Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
client side fixes and a bit of js tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChristie committed Aug 18, 2012
1 parent 3ee3728 commit b368610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/netsuite-rest-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ def parse_json_result_from_rest(method, params, options={})
end

if !parsed.first || parsed.flatten.include?("UNEXPECTED_ERROR")
raise "Error processing request: #{parsed.last[0][0].to_s}"
raise "Error processing request: #{parsed.last.to_s}"
else
parsed.last[0]
parsed.last
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/restlets/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ function getHandler(request) {
return([true].concat([evalOperation('GET', request.operation, request)]));
}
catch(exception) {
return([false].concat(formatException(exception)));
return([false].concat([formatException(exception)]));
}
}

Expand All @@ -325,6 +325,6 @@ function postHandler(request) {
return([true].concat([evalOperation('POST', request['operation'], request)]));
}
catch(exception) {
return([false].concat(formatException(exception)));
return([false].concat([formatException(exception)]));
}
}

0 comments on commit b368610

Please sign in to comment.