8000 Fix some code issues. · python012/Solvent@7486fe3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7486fe3

Browse files
committed
Fix some code issues.
1 parent 178f764 commit 7486fe3

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/com/semet/SetMetWebDriverSession.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,13 @@ public static RemoteWebDriver get() {
1818
public static void set(RemoteWebDriver instance) {
1919
rwd.set(instance);
2020
}
21+
22+
public static void pause(long i) {
23+
try {
24+
Thread.sleep(i);
25+
} catch (InterruptedException e) {
26+
log.error("InterruptedException in pause()");
27+
log.error(e.getMessage());
28+
}
29+
}
2130
}

src/com/solvent/util/Configurator.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ public class Configurator {
2929
try {
3030
defaults.load(Configurator.class.getResourceAsStream(DEFAULT_PROPERTIES_RESOURCE));
3131
} catch (IOException e) {
32-
throw new ConfigurationError(e.getMessage(), e);
32+
// throw new ConfigurationError(e.getMessage(), e);
33+
log.error("ConfigurationError: " + e.getMessage());
3334
}
3435
if (null != propFileName) {
3536
File propFile = new File(propFileName);
@@ -39,8 +40,10 @@ public class Configurator {
3940
props.load(new FileInputStream(propFile));
4041
initialize(props);
4142
} catch (IOException e) {
42-
throw new ConfigurationError("Error while loading configuration file: " + propFile.getAbsolutePath(),
43-
e);
43+
// throw new ConfigurationError("Error while loading configuration file: " + propFile.getAbsolutePath(),
44+
// e);
45+
log.error("Error while loading configuration file: " + propFile.getAbsolutePath());
46+
log.error("ConfigurationError: " + e.getMessage());
4447
}
4548
}
4649
}

0 commit comments

Comments
 (0)
0