Fixed on-error behavour of resource creation
Merge pull request #384 from dswd/fix-resources-error

Fixed on-error behaviour of resource creation