Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an exception and 400 response code when making datastream-specific... #431

Closed
wants to merge 2 commits into from

Conversation

mikedurbin
Copy link
Contributor

... requests on non-datastream resources.

Addresses Pivotal Ticket https://www.pivotaltracker.com/story/show/75915350.

super(n);

if (node.isNew()) {
initializeNewDatastreamProperties();
} else if (!hasMixin(node) && !isFrozen.apply(n)) {
throw new ResourceTypeException();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a message that will show up in the Response body may help users to debug the error, no?

@awoods
Copy link

awoods commented Aug 7, 2014

Resolved with: 2e16f82

@awoods awoods closed this Aug 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants