diff --git a/tools/maven/plugin/src/main/java/org/teavm/maven/AbstractJavascriptMojo.java b/tools/maven/plugin/src/main/java/org/teavm/maven/AbstractJavascriptMojo.java index 8863821baa..fcafbc863c 100644 --- a/tools/maven/plugin/src/main/java/org/teavm/maven/AbstractJavascriptMojo.java +++ b/tools/maven/plugin/src/main/java/org/teavm/maven/AbstractJavascriptMojo.java @@ -148,7 +148,7 @@ protected void setupTool(BaseTeaVMTool tool) throws MojoExecutionException { tool.setSourceMapsFileGenerated(sourceMapsGenerated); tool.setSourceFilesCopied(sourceFilesCopied); } catch (RuntimeException e) { - throw new MojoExecutionException("Unexpected error occured", e); + throw new MojoExecutionException("Unexpected error occurred", e); } } diff --git a/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java b/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java index dbc1dac6d3..44458fccf9 100644 --- a/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java +++ b/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptMojo.java @@ -103,7 +103,7 @@ public void execute() throws MojoExecutionException { throw new MojoExecutionException("Build error"); } } catch (RuntimeException e) { - throw new MojoExecutionException("Unexpected error occured", e); + throw new MojoExecutionException("Unexpected error occurred", e); } catch (TeaVMToolException e) { throw new MojoExecutionException("IO error occured", e); } diff --git a/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java b/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java index ccc8658631..3672ae678a 100644 --- a/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java +++ b/tools/maven/plugin/src/main/java/org/teavm/maven/BuildJavascriptTestMojo.java @@ -116,7 +116,7 @@ public void execute() throws MojoExecutionException, MojoFailureException { } writePlan(tool.generate()); } catch (TeaVMToolException e) { - throw new MojoFailureException("Error occured generating JavaScript files", e); + throw new MojoFailureException("Error occurred generating JavaScript files", e); } } diff --git a/tools/maven/plugin/src/main/java/org/teavm/maven/SeleniumRunStrategy.java b/tools/maven/plugin/src/main/java/org/teavm/maven/SeleniumRunStrategy.java index fdaeac6edf..ff436c3a6d 100644 --- a/tools/maven/plugin/src/main/java/org/teavm/maven/SeleniumRunStrategy.java +++ b/tools/maven/plugin/src/main/java/org/teavm/maven/SeleniumRunStrategy.java @@ -79,7 +79,7 @@ public String runTest(Log log, String runtimeScript, TestCase testCase) throws I readFile(new File(directory, testCase.getTestScript())), readResource("teavm-selenium-adapter.js")); } catch (WebDriverException e) { - log.error("Error occured running test " + testCase.getTestMethod(), e); + log.error("Error occurred running test " + testCase.getTestMethod(), e); @SuppressWarnings("unchecked") List errors = (List) js.executeScript("return window.jsErrors;"); if (errors != null) {