incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r676471 - in /incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin: ConfigureMavenRepositoryForm.cs NMavenImportProjectForm.cs
Date Mon, 14 Jul 2008 04:13:20 GMT
Author: brett
Date: Sun Jul 13 21:13:19 2008
New Revision: 676471

URL: http://svn.apache.org/viewvc?rev=676471&view=rev
Log:
[NMAVEN-167] Make error messages more descriptive
Submitted by: Jan Ancajas

Modified:
    incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/ConfigureMavenRepositoryForm.cs
    incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/NMavenImportProjectForm.cs

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/ConfigureMavenRepositoryForm.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/ConfigureMavenRepositoryForm.cs?rev=676471&r1=676470&r2=676471&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/ConfigureMavenRepositoryForm.cs
(original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/ConfigureMavenRepositoryForm.cs
Sun Jul 13 21:13:19 2008
@@ -51,7 +51,8 @@
             }
             catch (Exception e)
             {
-                MessageBox.Show(e.Message + e.StackTrace);
+                MessageBox.Show("Cannot read settings.xml: " + settingsPath + Environment.NewLine
+
+                                 e.Message + Environment.NewLine + e.StackTrace);
             }
             
         }

Modified: incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/NMavenImportProjectForm.cs
URL: http://svn.apache.org/viewvc/incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/NMavenImportProjectForm.cs?rev=676471&r1=676470&r2=676471&view=diff
==============================================================================
--- incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/NMavenImportProjectForm.cs
(original)
+++ incubator/nmaven/branches/NMAVEN_0.14/assemblies/NMaven.VisualStudio.Addin/src/main/csharp/NMaven/VisualStudio/Addin/NMavenImportProjectForm.cs
Sun Jul 13 21:13:19 2008
@@ -55,7 +55,7 @@
                     String prefix = getAssemblyCompany(assemblyInfo);
                     txtGroupId.Text = (prefix==null||prefix.Equals("")?"":(prefix.Replace("
","") + ".")) + new FileInfo(applicationObject.Solution.FileName).Name.Replace(".sln", "");
                 }
-                catch (Exception e) { MessageBox.Show(e.Message + Environment.NewLine + e.StackTrace);
}
+                catch (Exception e) { MessageBox.Show("Cannot read file AssemblyInfo : "+e.Message
+ Environment.NewLine + e.StackTrace); }
 
             }
 
@@ -99,7 +99,7 @@
                 NMavenImporter importer = new NMavenImporter(new String[2] {txtBrowseDotNetSolutionFile.Text,
"-DgroupId=" + txtGroupId.Text });
                 importer.GeneratePom();
 
-                string str = string.Format("NMaven Import Project has Successfully Generated
Pom Files!!!\n\n  Parent Pom XML File: {0} ", importer.GeneratedSolutionPomFile);
+                string str = string.Format("NMaven Import Project has successfully generated
pom file(s).\n\n  Parent Pom XML File: {0} ", importer.GeneratedSolutionPomFile);
 
 
                 
@@ -152,7 +152,7 @@
             }
             catch (Exception e)
             {
-                MessageBox.Show("cannot read file: "+ file.FullName + Environment.NewLine
+ e.StackTrace);
+                MessageBox.Show("cannot read file: "+ file.FullName + Environment.NewLine
+ e.Message + Environment.NewLine + e.StackTrace);
             }
 
             return result;



Mime
View raw message