mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
parent
40fc712581
commit
3ed776e4cc
2 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,9 @@ public class AvatarStore {
|
|||
}
|
||||
|
||||
private void deleteAvatar(final File avatarFile) throws IOException {
|
||||
Files.delete(avatarFile.toPath());
|
||||
if (avatarFile.exists()) {
|
||||
Files.delete(avatarFile.toPath());
|
||||
}
|
||||
}
|
||||
|
||||
private File getGroupAvatarFile(GroupId groupId) {
|
||||
|
|
|
@ -40,7 +40,7 @@ public class UpdateProfileCommand implements LocalCommand {
|
|||
: avatarPath == null ? null : Optional.of(new File(avatarPath));
|
||||
m.setProfile(name, about, aboutEmoji, avatarFile);
|
||||
} catch (IOException e) {
|
||||
System.err.println("UpdateAccount error: " + e.getMessage());
|
||||
System.err.println("Update profile error: " + e.getMessage());
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue