Permalink
Browse files

2005-12-21 Miguel de Icaza <miguel@novell.com>

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

svn path=/trunk/mcs/; revision=54704
  • Loading branch information...
1 parent 3c746c4 commit 3540f1feb3d054729d44295deea6ab481e6dd24d @migueldeicaza migueldeicaza committed Dec 21, 2005
Showing with 10 additions and 0 deletions.
  1. +5 −0 mcs/mcs/ChangeLog
  2. +5 −0 mcs/mcs/driver.cs
View
@@ -1,3 +1,8 @@
+2005-12-21 Miguel de Icaza <miguel@novell.com>
+
+ * driver.cs: Report the case of no source files and no -out:
+ argument provided.
+
2005-12-20 Raja R Harinath <rharinath@novell.com>
Fix #77035.
View
@@ -1597,6 +1597,11 @@ internal static bool MainDriver (string [] args)
// 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)

0 comments on commit 3540f1f

Please sign in to comment.