Skip to content

Misleading error classification #43

Description

@jahkeup

When userdata exits with an error, the error handling checks output and tries to classify the error to print out some helpful message (with content type).

This message is confusing when scripts themselves run into issues that "grok" as exec format errors (intended to help determine issues with the provided userdata script itself, not from errors in the userdata script's execution).

Concerned line:

return fmt.Sprintf("provided user data is not executable (detected type: %s)", contentType), nil

Instead, we should only print the helpful message when the userdata itself is found to be an unsuitable format.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions