Picolab / pico-engine

An implementation of the pico-engine hosted on node.js
http://picolabs.io/
MIT License
43 stars 8 forks source link

Compiler failure message could be clearer #653

Closed b1conrad closed 9 months ago

b1conrad commented 9 months ago

A common mistake is to share a defaction. This triggers a compile time error message:

Error: Actions cannot be used queries: name_of_defaction

The error message does say which defaction was shared which is good.

Suggest the message be worded differently, say

Error: Actions must not be shared: name_of_defaction
b1conrad commented 9 months ago

A search within GitHub shows two occurrences of the string. In the compiler itself, and in the compiler tests.

b1conrad commented 9 months ago

Change made