[Application] Report NotFound error in case of conversion failure.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 27 Jul 2015 11:10:13 +0000 (13:10 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 27 Jul 2015 11:10:13 +0000 (13:10 +0200)
[Verificaton] UTC UTC_application_getAppContext_N_001 passes.
              100% TCT pass rate.

Change-Id: Ic5a8f410f41ae924e1b4c1deb1036820eae471e4
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/application/application_manager.cc

index 7cb656634ee2dbd238eebf32855506d5f4e2c190..b6d3b799356ff780dd761adb3ef7904456ad43ce 100755 (executable)
@@ -772,7 +772,7 @@ void ApplicationManager::GetAppContext(const picojson::value& args, picojson::ob
       pid = std::stoi(context_id.get<std::string>());
     } catch(...) {
       LoggerE("Failed to convert context id.");
-      ReportError(PlatformResult(ErrorCode::UNKNOWN_ERR, "Failed to convert context id."), out);
+      ReportError(PlatformResult(ErrorCode::NOT_FOUND_ERR, "Failed to convert context id."), out);
       return;
     }
   } else {