Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jesse Andrews 191 posts 716 karma points c-trib
    Jun 28, 2019 @ 22:36
    Jesse Andrews
    0

    Failed job submission doesn't display error message

    Translation Manager: 2.2.3

    When I send a translation job directly to submission with the "Send to translate" action and the submission fails, it doesn't display an error message in the red box that appears.

    These are the settings when I create the job. direct submit

    and this is the resulting error I get when I intentionally fail the TranslationAttempt in the provider. no error message shown

    The error is logged properly in the umbraco logs, but its message doesn't make it's way to the backoffice view, as the api call just throws a general 500 error. Below is the relevant bit of the logged error.

    2019-06-28 15:09:17,043 [P3140/D6/T71] ERROR Jumoo.TranslationManager.Core.Controllers.TranslationJobApiController - Unhandled controller exception occurred
        System.Exception: Testing.
        at Jumoo.TranslationManager.Core.Controllers.TranslationJobApiController.<Create>d__17.MoveNext()
        ...
    

    "Testing." is the message I passed back in the failed TranslationAttempt.

    It would be nice if the error message from the failed attempt was displayed in that box. Another potential improvement is to include the failed job in the list of submitted jobs with an "x" next to it instead of the checkmark. In the second screenshot, it stops at "0/1" and doesn't show the language that failed to submit. Obviously this doesn't matter that much if only one language is submitted, but this would make it clear which language failed when there is more than one.

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Jul 04, 2019 @ 13:54
    Kevin Jump
    100

    Hi,

    yeah in v2.2 I think it only message not the exception :(

    we've fixed this in v2.3 and now both the message and exception should appear in the box when a provider returns an error.

    Kevin

Please Sign in or register to post replies

Write your reply to:

Draft