rokucommunity / roku-deploy

An npm module for zipping and deploying to Roku devices.
MIT License
41 stars 17 forks source link

Much better responses from the various functions #122

Open TwitchBronBron opened 11 months ago

TwitchBronBron commented 11 months ago

Sometimes roku-deploy just returns a string as the response from doing something. That's not overly helpful .We should do a much better job return a structured response/status object so the callers can make more informed decisions about this stuff.

Problems to solve:

We might need to append rokuMessages to every error.

interface RokuDeployError {
    message: string;
    stack: any;
    rokuMessages: RokuMessages;
}