Skip to content

Commit

Permalink
downgrade OSHI due to error 500 (#21)
Browse files Browse the repository at this point in the history
* downgrade OSHI due to error 500

* bump version
  • Loading branch information
AntonyLeons authored Apr 23, 2022
1 parent 3f79411 commit 18f23ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .run/Ward.run.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Ward" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<option name="ACTIVE_PROFILES" />
<module name="ward" />
<option name="SPRING_BOOT_MAIN_CLASS" value="dev.leons.ward.Ward" />
<option name="ALTERNATIVE_JRE_PATH" />
<method v="2">
<option name="Make" enabled="true" />
</method>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>dev.leons</groupId>
<artifactId>ward</artifactId>
<version>2.1.8</version>
<version>2.1.9</version>
<packaging>jar</packaging>

<!-- parent pom -->
Expand All @@ -17,7 +17,7 @@

<!-- project properties -->
<properties>
<oshiVersion>6.1.6</oshiVersion>
<oshiVersion>6.1.4</oshiVersion>
<jnaVersion>5.11.0</jnaVersion>
<lombokVersion>1.18.24</lombokVersion>
<ini4jVersion>0.5.4</ini4jVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public ResponseEntity<ErrorDto> methodArgumentNotValidExceptionHandler(final Exc
public String exceptionHandler(final Exception exception, final Model model) throws IOException
{
model.addAttribute("theme", utilitiesComponent.getFromIniFile("theme"));

System.out.println(exception.getMessage());
return (exception instanceof HttpRequestMethodNotSupportedException) ? "error/404" : "error/500";
}
}

0 comments on commit 18f23ae

Please sign in to comment.