mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-04 05:56:28 -04:00
Merge pull request #88 from matthiasclasen/builder-command-docs
Improve an error message
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user