build: Improve target message in build_common
authorMats Wichmann <mats@linux.com>
Thu, 4 May 2017 15:09:12 +0000 (09:09 -0600)
committerPhil Coval <philippe.coval@osg.samsung.com>
Tue, 27 Jun 2017 08:40:51 +0000 (08:40 +0000)
Improve the text of host/target unsup message in build_common

No operational changes

Change-Id: I6a8b95fac210a8f80132bebab148a67dfa76d51d
Signed-off-by: Mats Wichmann <mats@linux.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19637
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
(cherry picked from commit 570d343aa00bb5b503c7c6cea904eb52691a42e0)
Bug: https://jira.iotivity.org/browse/IOT-1745
Signed-off-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20579
Reviewed-by: Habib Virji <habib.virji@samsung.com>
build_common/SConscript

index c575ad2..08cef23 100755 (executable)
@@ -37,7 +37,7 @@ if 'msys_nt' in host:
     host = 'msys_nt'
 
 if host not in host_target_map:
-    print "\nError: Current system (%s) isn't supported\n" % host
+    print "\nError: building on '%s' is not currently supported.\n" % host
     Exit(1)
 
 ######################################################################
@@ -46,7 +46,7 @@ if host not in host_target_map:
 target_os = ARGUMENTS.get('TARGET_OS', host).lower() # target os
 
 if target_os not in host_target_map[host]:
-    print "\nError: Unknown target os: %s (Allow values: %s)\n" % (target_os, host_target_map[host])
+    print "\nError: '%s' host cannot build for '%s' target.\navailable targets: %s\n" % (host, target_os, host_target_map[host])
     Exit(1)
 
 if target_os == 'android':