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:
Matthias Clasen committed 2016-09-24 11:04:16 -04:00
1 parent 636130db49
commit 39e29f7cb1
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}