Author: miguel
Date: 2005-12-21 15:56:16 -0500 (Wed, 21 Dec 2005)
New Revision: 54704

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/driver.cs
Log:
2005-12-21  Miguel de Icaza  <[EMAIL PROTECTED]>

        * driver.cs: Report the case of no source files and no -out:
        argument provided.

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2005-12-21 20:49:21 UTC (rev 54703)
+++ trunk/mcs/mcs/ChangeLog     2005-12-21 20:56:16 UTC (rev 54704)
@@ -1,3 +1,8 @@
+2005-12-21  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * driver.cs: Report the case of no source files and no -out:
+       argument provided.
+
 2005-12-20  Raja R Harinath  <[EMAIL PROTECTED]>
 
        Fix #77035.

Modified: trunk/mcs/mcs/driver.cs
===================================================================
--- trunk/mcs/mcs/driver.cs     2005-12-21 20:49:21 UTC (rev 54703)
+++ trunk/mcs/mcs/driver.cs     2005-12-21 20:56:16 UTC (rev 54704)
@@ -1597,6 +1597,11 @@
                        // Quick hack
                        //
                        if (output_file == null){
+                               if (first_source == null){
+                                       Report.Error (1562, "If no source files 
are specified you must specify the output file with -out:");
+                                       return false;
+                               }
+                                       
                                int pos = first_source.LastIndexOf ('.');
 
                                if (pos > 0)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to