golemcloud / golem

Golem is an open source durable computing platform that makes it easy to build and deploy highly reliable distributed systems.
https://learn.golem.cloud/
Apache License 2.0
530 stars 59 forks source link

Fixes #966, #797 and other clean ups #987

Closed afsalthaj closed 1 month ago

afsalthaj commented 1 month ago

Fixes #966, #797, and other cleanups:

Unknown function call: `foo`
Unknown resource constructor call: `golem:it/api.{cart0(user_id).add-item}`. Resource `cart0` doesn't exist
Unknown resource method call golem:it/api.{cart(user_id).foo}. `foo` doesn't exist in resource `cart`
Incorrect number of arguments for function `foo`. Expected 1, but provided 2
Incorrect number of arguments for resource constructor `cart`. Expected 1, but provided 2
Invalid type for the argument in resource method `golem:it/api.{cart(user_id).add-item}`. 
Expected type `record`, but provided argument `\"foo\"` is a `str`

etc

afsalthaj commented 1 month ago

The error messages in the PR description is a candidate for review