[power] Fixed error handling
Merge pull request #236 from beaufortfrancois/fixPowerError

[power] Fixed error handling