diff options
| author | Tim Murray <timmurray@google.com> | 2013-08-15 16:25:03 -0700 |
|---|---|---|
| committer | Tim Murray <timmurray@google.com> | 2013-08-19 12:07:52 -0700 |
| commit | 21fa7a0a23eddab88ff261017f6d7a2548b4d89a (patch) | |
| tree | 38d9b9d3dd271bf7b5eb09ba23b85ca793cdaf4f /cpp/Script.cpp | |
| parent | 2d7d0b276ed4b3cedf72342a4d2ab287d4653ce0 (diff) | |
Add error handling, move to create methods for intrinsics.
Change-Id: I81a0d481fef8b9396c648fdf18aee716a2056612
Diffstat (limited to 'cpp/Script.cpp')
| -rw-r--r-- | cpp/Script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/Script.cpp b/cpp/Script.cpp index 9bc55ff3..29fe12d0 100644 --- a/cpp/Script.cpp +++ b/cpp/Script.cpp @@ -28,7 +28,7 @@ void Script::invoke(uint32_t slot, const void *v, size_t len) const { void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, const void *usr, size_t usrLen) const { if ((ain == NULL) && (aout == NULL)) { - mRS->throwError("At least one of ain or aout is required to be non-null."); + mRS->throwError(RS_ERROR_INVALID_PARAMETER, "At least one of ain or aout is required to be non-null."); } void *in_id = BaseObj::getObjID(ain); void *out_id = BaseObj::getObjID(aout); |
