提交 a7493f7a 编写于 作者: R Robert Metzger

Various minor fixes:

- better exceptions for faulty temporary directories
- better exception if client can not connect to JobManager
上级 80ab5309
...@@ -266,7 +266,6 @@ ...@@ -266,7 +266,6 @@
</profile> </profile>
</profiles> </profiles>
<dependencyManagement> <dependencyManagement>
<!-- this section defines the module versions that are used if nothing else is specified. --> <!-- this section defines the module versions that are used if nothing else is specified. -->
<dependencies> <dependencies>
...@@ -291,7 +290,6 @@ ...@@ -291,7 +290,6 @@
<reporting> <reporting>
<plugins> <plugins>
<!-- execution of Unit Tests --> <!-- execution of Unit Tests -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
...@@ -440,8 +438,8 @@ ...@@ -440,8 +438,8 @@
<configuration> <configuration>
<rules> <rules>
<requireMavenVersion> <requireMavenVersion>
<version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version> <!-- enforce at least mvn version 3.0.3 -->
<message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.</message> <version>[3.0.3,)</version>
</requireMavenVersion> </requireMavenVersion>
</rules> </rules>
</configuration> </configuration>
......
...@@ -1549,7 +1549,9 @@ public class PactCompiler { ...@@ -1549,7 +1549,9 @@ public class PactCompiler {
throw new CompilerException(e.getMessage()); throw new CompilerException(e.getMessage());
} }
catch (Throwable t) { catch (Throwable t) {
throw new CompilerException("Error while connecting to the job manager: " + t.getMessage(), t); throw new CompilerException("Cannot connect to the JobManager to determine the available TaskManagers. "
+ "Check if the JobManager is running (using the web interface or log files). Reason: " +
t.getMessage(), t);
} }
// determine which type to run on // determine which type to run on
......
...@@ -934,15 +934,15 @@ public class TaskManager implements TaskOperationProtocol { ...@@ -934,15 +934,15 @@ public class TaskManager implements TaskOperationProtocol {
final File f = new File(dir); final File f = new File(dir);
if (!f.exists()) { if (!f.exists()) {
throw new Exception("Temporary file directory #" + (i + 1) + " does not exist."); throw new Exception("Temporary file directory '" + f.getAbsolutePath() + "' does not exist.");
} }
if (!f.isDirectory()) { if (!f.isDirectory()) {
throw new Exception("Temporary file directory #" + (i + 1) + " is not a directory."); throw new Exception("Temporary file directory '" + f.getAbsolutePath() + "' is not a directory.");
} }
if (!f.canWrite()) { if (!f.canWrite()) {
throw new Exception("Temporary file directory #" + (i + 1) + " is not writable."); throw new Exception("Temporary file directory '" + f.getAbsolutePath() + "' is not writable.");
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册