mirror of
https://github.com/apple/pkl.git
synced 2026-03-21 00:29:07 +01:00
Handle null pathElements gracefully in message passing API (#480)
In messages "List Resources Response" and "List Modules Response", if `pathElements` and `error` are both null, default to an empty list.
This commit is contained in:
@@ -451,6 +451,8 @@ The response to <<list-resources-request>>.
|
||||
If successful, `pathElements` is set.
|
||||
Otherwise, `error` is set.
|
||||
|
||||
If neither are set, `pathElements` default to an empty list.
|
||||
|
||||
[source,pkl]
|
||||
----
|
||||
/// A number identifying this request.
|
||||
@@ -507,6 +509,8 @@ The response to <<list-modules-request>>.
|
||||
If successful, `pathElements` is set.
|
||||
Otherwise, `error` is set.
|
||||
|
||||
If neither are set, `pathElements` default to an empty list.
|
||||
|
||||
[source,pkl]
|
||||
----
|
||||
/// A number identifying this request.
|
||||
|
||||
Reference in New Issue
Block a user