Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip parameters which are not there instead of failing out #257

Merged
merged 1 commit into from
Apr 10, 2018

Conversation

nickvergessen
Copy link
Member

Fix #256
Fix #77

Testing today:

  1. Switch to italian
  2. Create a file
  3. Share by email

Testing tomorrow:

See above + revert #256 (comment)

Expected

  1. The stream is loaded (broken parameters displayed as is)

Actual

  1. The stream breaks completly.

@@ -45,8 +45,12 @@

_.each(matches, function(parameter) {
parameter = parameter.substring(1, parameter.length - 1);
var parsed = self.parseParameter(parameters[parameter]);
if (!parameters.hasOwnProperty(parameter) || !parameters[parameter]) {
// Malformed translation?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be reported instead of failing silently?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well only thing would be console.log, but that is disabled for non-debug anyway, so I don't think it's important.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, wouldn't it be helpful for debugging? for the app dev to to find out where an issues occurs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whatever I was thinking, yes of course, amended

@blizzz
Copy link
Member

blizzz commented Apr 4, 2018

travis is unhapy

@nickvergessen
Copy link
Member Author

Travis was fixed with https://github.com/nextcloud/activity/pull/259/files

But I will rebase

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen merged commit 91cfac7 into master Apr 10, 2018
@nickvergessen nickvergessen deleted the bugfix/256/skip-on-error branch April 10, 2018 10:44
@MorrisJobke
Copy link
Member

@nickvergessen Next RC is coming - time for backport

@MorrisJobke
Copy link
Member

@nickvergessen To backport or not to backport?

@nickvergessen
Copy link
Member Author

ws already backported see #265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants