resource: Pass error result directly from resource creation accepted/tizen/unified/20220917.094318 accepted/tizen/unified/20220919.013232
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 15 Sep 2022 02:15:27 +0000 (11:15 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 15 Sep 2022 06:41:52 +0000 (15:41 +0900)
commitc709c78da0af3807289cd74fe148572f8d39ff2c
treea3d9aa3ce63775d759e2ab89b14dcb8fbf2c2f19
parent77fb6033be76b54f2c47c75c7fdaf82855ac4a20
resource: Pass error result directly from resource creation

Previously, it was lost by returning NULL instead of the error code
that occurred during the resource creation process, but now the error
code is passed directly so that the caller can know the exact reason.

Change-Id: Iffc25c266186195d23ef0f61bba989ff5e36b4d7
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
include/util/resource.h
src/monitor/request-handler.c
src/util/resource.c