diff --git a/airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java b/airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java index 5009bdf3..d6f4662c 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java +++ b/airsonic-main/src/main/java/org/airsonic/player/controller/TranscodingSettingsController.java @@ -69,9 +69,10 @@ public class TranscodingSettingsController { public String doPost(HttpServletRequest request, RedirectAttributes redirectAttributes) throws Exception { String error = handleParameters(request, redirectAttributes); if (error != null) { + redirectAttributes.addFlashAttribute("error", error); + } else { redirectAttributes.addFlashAttribute("settings_toast", true); } - redirectAttributes.addFlashAttribute("error", error); return "redirect:transcodingSettings.view"; }