From 34870acb27329bb7e3766acb1c6b0b569764becb Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 29 Apr 2015 11:52:36 +0000 Subject: Improve 'Deploy failed as system is not yet build' error. If a user had the wrong setting for artifact-cache-server then they could build a system with 'morph distbuild', then be told it wasn't built by 'morph deploy'. The logs do not show any info about which cache server was used, so it looks like a Morph bug. This change should make such a configuration problem much easier to spot. Change-Id: I932ca3c5caa46990f9bcd77d75b3862f49e0dfb8 --- morphlib/plugins/deploy_plugin.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'morphlib/plugins/deploy_plugin.py') diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index ea84d9ec..65bf7140 100644 --- a/morphlib/plugins/deploy_plugin.py +++ b/morphlib/plugins/deploy_plugin.py @@ -542,10 +542,11 @@ class DeployPlugin(cliapp.Plugin): build_command.cache_artifacts_locally([artifact]) f = build_command.lac.get(artifact) else: - raise cliapp.AppException('Deployment failed as system is' - ' not yet built.\nPlease ensure' - ' the system is built before' - ' deployment.') + raise cliapp.AppException( + 'Deployment failed as built system is not present in the ' + 'artifact cache.\nPlease ensure the system is built ' + 'before deployment, and the artifact-cache-server (%s) is ' + 'the correct one.' % build_command.rac) tf = tarfile.open(fileobj=f) tf.extractall(path=system_tree) -- cgit v1.2.1