return rejected promise in fail case
Merge pull request #6868 from adobe/randy/livedev-exception2

Return rejected promise in fail case