Cannot distinguish error code in mget()

  • George James
    George James

    If I call the mget method on an undefined global it returns an error code rather than the value of the node.  It is not possible to tell whether you got a error or not if the global node happened to contain a value that was the same as the error code.

    Perhaps this method should return a tuple of two values, the first being the string value of the global node, or null if it is undefined, and the second being the $data value for that node.