improved error logging

This commit is contained in:
Sebastian Stenzel
2019-06-18 15:00:25 +02:00
parent 367281fccb
commit f909f384be

View File

@@ -10,6 +10,7 @@ package org.cryptomator.common.settings;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonParseException;
import org.cryptomator.common.Environment;
import org.cryptomator.common.LazyInitializer;
import org.slf4j.Logger;
@@ -117,7 +118,7 @@ public class SettingsProvider implements Provider<Settings> {
}
Files.move(tmpPath, settingsPath, StandardCopyOption.REPLACE_EXISTING);
LOG.info("Settings saved to {}", settingsPath);
} catch (IOException e) {
} catch (IOException | JsonParseException e) {
LOG.error("Failed to save settings.", e);
}
}