Merge pull request #88 from matthiasclasen/builder-command-docs

Improve an error message
This commit is contained in:
Alexander Larsson
2016-06-03 15:24:12 +02:00
2 changed files with 8 additions and 2 deletions

View File

@@ -1632,8 +1632,14 @@ builder_manifest_finish (BuilderManifest *self,
if (!g_file_query_exists (bin_command, NULL))
{
const char *help = "";
if (strchr (self->command, ' '))
help = ". Use a shell wrapper for passing arguments";
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
"Command '%s' not found", self->command);
"Command '%s' not found%s", self->command, help);
return FALSE;
}
}

View File

@@ -132,7 +132,7 @@
</varlistentry>
<varlistentry>
<term><option>command</option> (string)</term>
<listitem><para>The filename or path to the main binary of the application.</para></listitem>
<listitem><para>The filename or path to the main binary of the application. Note that this is really just a single file, not a commandline. If you want to pass arguments, install a shell script wrapper and use that as the command.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>build-runtime</option> (boolean)</term>