services/device/device: Make it an error to operate on the null set.

Sometimes commands like "device update" return success even though they
havn't changed anything. This often is because the device isn't mounted
or something and as a result the "glob" used to run the operation
returns nothing - so the command thinks it has successfully updated 0
objects.

This commit makes it an error to do an operation on 0 objects.
Errors in operating on an object were already being reported.

Change-Id: Ie7302a35b27ac154c1d501bec60eb5f8f7c95070
2 files changed
tree: 53850ed9889ac94b79760c37bdb28264f01c0629
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.