Modify msg_submit_req return value.
authorKeebum Kim <keebum.kim@samsung.com>
Fri, 7 Jun 2013 05:16:48 +0000 (14:16 +0900)
committerKeebum Kim <keebum.kim@samsung.com>
Fri, 7 Jun 2013 05:16:48 +0000 (14:16 +0900)
Change-Id: Iaf2f37e09c8ab4f4d7ea7038563d2e9662bfbbc1

mapi/msg_transport.cpp

index 880e168..8b27132 100755 (executable)
@@ -49,7 +49,11 @@ EXPORT_API int msg_submit_req(msg_handle_t handle, msg_struct_t req)
        catch (MsgException& e)
        {
                MSG_FATAL("%s", e.what());
-               return MSG_ERR_TRANSPORT_ERROR;
+
+               if ((e.errorCode() == MsgException::IPC_ERROR) || (e.errorCode() == MsgException::FILE_ERROR))
+                       return MSG_ERR_STORAGE_ERROR;
+               else
+                       return MSG_ERR_TRANSPORT_ERROR;
        }
 
        return err;