Skip to content

No Error Thrown When a Non-Image File Is Used as a Costume #231

@aspizu

Description

@aspizu

Summary

Specifying a non-image file in the costumes directive produces no error. Only image files should be accepted.

Steps to Reproduce

costumes "project.json";

Expected Behavior

A compile error should be raised indicating that the file is not a valid image.

error: invalid costume: "project.json" is not an image file
 --> playground/main.gs:1:10
  |
1 |     costumes "project.json";
  |              ^^^^^^^^^^^^^^^
  |

Actual Behavior

No error is produced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions