kernel: services: return ServerNotFound when server isn't found

This is more intuitive than `OutOfMemory`.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-10-30 20:43:59 +08:00
parent 2244a78f16
commit d76832dada

View file

@ -1397,7 +1397,7 @@ impl SystemServices {
}
}
}
Err(xous_kernel::Error::OutOfMemory)
Err(xous_kernel::Error::ServerNotFound) // May also be OutOfMemory if the table is full
})
}