Skip to content

Much better responses from the various functions #122

Description

@TwitchBronBron

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:

  • roku has info, warn, error stuff. we're not logging those. we should. So if we're gonna throw, we should log better reasons why.
  • our tools like vscode are likely not taking advantage of this when it could. we're just looking at "it threw" and logging it. We should try passing along info, warn, error stuff to the console.

We might need to append rokuMessages to every error.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions