Currently, `getLastError` only returns the error status for calls to `SCRIPT`; this could be generalised to all commands.