Merge pull request #4159 from akoeplinger/aot-only-rename
[mono.git] / mcs / tools / mkbundle / mkbundle.cs
index 1ea1d7402455704a22e4b237c25c8fe15f3d3f9b..603af9458a8bc76785fcf06f18d2dbbe533c3eda 100755 (executable)
@@ -372,7 +372,7 @@ class MakeBundle {
                if (fetch_target != null){
                        var directory = Path.Combine (targets_dir, fetch_target);
                        var zip_download = Path.Combine (directory, "sdk.zip");
-                       Directory.CreateDirectory (Path.GetDirectoryName (directory));
+                       Directory.CreateDirectory (directory);
                        var wc = new WebClient ();
                        var uri = new Uri ($"{target_server}{fetch_target}");
                        try {
@@ -1071,9 +1071,11 @@ void          mono_register_config_for_assembly (const char* assembly_name, cons
                        }
                }
 
-               if (error)
+               if (error) {
+                       Error ("Couldn't load one or more of the assemblies.");
                        Environment.Exit (1);
-               
+               }
+
                return assemblies;
        }
 
@@ -1103,8 +1105,10 @@ void          mono_register_config_for_assembly (const char* assembly_name, cons
                        }
                }
 
-               if (error)
+               if (error) {
+                       Error ("Couldn't load one or more of the i18n assemblies.");
                        Environment.Exit (1);
+               }
        }