mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-25 00:49:28 -04:00
Mention the commands to run in error messages
When complaining that a build directory has not been initialized or finalized, mention the commands to do so.
This commit is contained in:
1 parent
636130db49
commit
39e29f7cb1
1 file changed
+2
-2
@@ -551,7 +551,7 @@ flatpak_builtin_build_export (int argc, char **argv, GCancellable *cancellable,
|
||||
if (!g_file_query_exists (files, cancellable) ||
|
||||
!g_file_query_exists (metadata, cancellable))
|
||||
{
|
||||
flatpak_fail (error, _("Build directory %s not initialized"), directory);
|
||||
flatpak_fail (error, _("Build directory %s not initialized, use flatpak build-init"), directory);
|
||||
goto out;
|
||||
}
|
||||
|
||||
@@ -568,7 +568,7 @@ flatpak_builtin_build_export (int argc, char **argv, GCancellable *cancellable,
|
||||
|
||||
if (!opt_runtime && !g_file_query_exists (export, cancellable))
|
||||
{
|
||||
flatpak_fail (error, "Build directory %s not finalized", directory);
|
||||
flatpak_fail (error, "Build directory %s not finalized, use flatpak build-finish", directory);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user