Skip to content

Commit 751c719

Browse files
committed
Polishing
1 parent 4f08c11 commit 751c719

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/io/simplelocalize/cli/SimplelocalizeCliCommand.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ public void download(
258258
List<String> nonNullConfigurationFileDownloadOptions = Objects.requireNonNullElse(configuration.getDownloadOptions(), List.of());
259259
configuration.setDownloadOptions(nonNullConfigurationFileDownloadOptions);
260260
boolean hasArgumentDownloadOptions = downloadOptions != null && !downloadOptions.isEmpty();
261-
if(hasArgumentDownloadOptions)
261+
if (hasArgumentDownloadOptions)
262262
{
263263
configuration.setDownloadOptions(downloadOptions);
264264
}
@@ -495,8 +495,13 @@ public void purge(
495495
private void handleException(Exception e)
496496
{
497497
log.error("Command failed.", e);
498+
if (e instanceof InterruptedException)
499+
{
500+
Thread.currentThread().interrupt();
501+
}
498502
trySendException(e);
499503
System.exit(CommandLine.ExitCode.USAGE);
504+
500505
}
501506

502507
private void trySendException(Exception exception)
@@ -507,7 +512,7 @@ private void trySendException(Exception exception)
507512
client.sendException(configuration, exception);
508513
} catch (Exception ex)
509514
{
510-
log.error("Unable to send exception to SimpleLocalize, please contact us at [email protected]", ex);
515+
log.error("Unable to send exception to SimpleLocalize, please contact us at [email protected]");
511516
}
512517
}
513518

0 commit comments

Comments
 (0)