From 8bd40fdcd54d4a63f96bfffafafeb49d1aa4c388 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 15 Jan 2018 04:19:23 -0500 Subject: [PATCH] [shellprocess] Warn when there's no script --- src/modules/shellprocess/ShellProcessJob.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/shellprocess/ShellProcessJob.cpp b/src/modules/shellprocess/ShellProcessJob.cpp index cf6d8d606..b5a04037c 100644 --- a/src/modules/shellprocess/ShellProcessJob.cpp +++ b/src/modules/shellprocess/ShellProcessJob.cpp @@ -118,8 +118,10 @@ ShellProcessJob::setConfigurationMap( const QVariantMap& configurationMap ) { m_commands = new CommandList( configurationMap.value( "script" ) ); if ( m_commands->isEmpty() ) - cDebug() << "ShellProcessJob: \"script\" contains no commands."; + cDebug() << "ShellProcessJob: \"script\" contains no commands for" << moduleInstanceKey(); } + else + cDebug() << "WARNING: No script given for ShellProcessJob" << moduleInstanceKey(); } CALAMARES_PLUGIN_FACTORY_DEFINITION( ShellProcessJobFactory, registerPlugin(); )