Skip to content

Commit

Permalink
Merge pull request #409 from crowdin/fix-streamisempty
Browse files Browse the repository at this point in the history
Fix 'streamIsEmpty' error
  • Loading branch information
andrii-bodnar authored Nov 29, 2021
2 parents e09bf57 + 1d107ef commit b6423e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public void act(Outputter out, PropertiesWithFiles pb, ProjectClient client) {

try (InputStream fileStream = new FileInputStream(sourceFile)) {
request.setStorageId(client.uploadStorage(source.substring(source.lastIndexOf(Utils.PATH_SEPARATOR) + 1), fileStream));
} catch (IOException e) {
} catch (Exception e) {
errorsPresented.set(true);
throw new RuntimeException(
String.format(RESOURCE_BUNDLE.getString("error.upload_to_storage"), sourceFile.getAbsolutePath()), e);
Expand Down

0 comments on commit b6423e9

Please sign in to comment.