Picolab/pico-engine

Possible improvement of an error message when ruleset doesn't have/share a query function

開放

#606 建立於 2022年6月3日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (10 個分叉)auto 404
UIbuggood first issue

倉庫指標

星標
 (51 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

When a sky query link is to a function which is not shared by a ruleset, the error message looks like:

{"error":"Error: Ruleset com.vcpnews.introspect does not have query function "channels""}

It ought to say "does not share" instead of have, in the case where the ruleset does have the function, but hasn't shared it.

The compiler doesn't allow sharing a function the ruleset doesn't have, so that case is taken care of there.

I'm suggesting two messages: the existing one for the case where the function doesn't exist in the ruleset, and the second one when it exists but isn't shared.

貢獻者指南