arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
675 stars 29 forks source link

[REPL]: should throw error for unknow color #1561

Closed RickBarretto closed 3 months ago

RickBarretto commented 5 months ago

Describe the bug The REPL should throw an error, similar of how this is for files, when trying to write unknown colors.

To Reproduce Executing a file:

$ echo "inspect #yelloww" > test.art
$ arturo test.art
>> Runtime | File: test.art
     error | Line: 1
           |
           | uncaught system exception:
           | unknown color: yelloww

Executing the REPL:

$> inspect #yelloww

Expected behavior Should throw a runtime error, as it's for files.

Screenshots image

Environment: