Grammalecte  Check-in [e6f6ea9999]

Overview
Comment:[core][js] text: include line_id in text error
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | kill_innerHTML
Files: files | file ages | folders
SHA3-256: e6f6ea99996f21d196357e8bcf2204a22c12d24089c2ba8848bdc66bd8eb9a0d
User & Date: olr on 2017-07-14 07:29:00
Original Comment: [fx][js] text: include line_id in text error
Other Links: branch diff | manifest | tags
Context
2017-07-14
08:08
fix typos in LICENSE.fr, THANKS and CHANGELOG check-in: 10cd70deb4 user: olr tags: kill_innerHTML
07:29
[core][js] text: include line_id in text error check-in: e6f6ea9999 user: olr tags: core, kill_innerHTML
06:47
[fx][js] test_panel: remove innerHTML check-in: acf176c4b5 user: olr tags: fx, kill_innerHTML
Changes

Modified gc_core/js/text.js from [f8cb0efb57] to [62ec1ec953].

35
36
37
38
39
40
41
42

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
    }
    yield sText;
}

function getReadableError (oErr) {
    // Returns an error oErr as a readable error
    try {
        let s = "\n* " + oErr['nStart'] + ":" + oErr['nEnd'] + "  # " + oErr['sRuleId']+":\n";

        s += "  " + oErr["sMessage"];
        if (oErr["aSuggestions"].length > 0) {
            s += "\n  > Suggestions : " + oErr["aSuggestions"].join(" | ");
        }
        if (oErr["URL"] !== "") {
            s += "\n  > URL: " + oErr["URL"];
        }
        return s;
    }
    catch (e) {
        helpers.logerror(e);
        return "\n# Error. Data: " + oErr.toString();
    }
}








|
>
|

|


|

|







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
    }
    yield sText;
}

function getReadableError (oErr) {
    // Returns an error oErr as a readable error
    try {
        let sResult = "\n* " + oErr['nStart'] + ":" + oErr['nEnd'] 
                    + "  # " + oErr['sLineId'] + "  # " + oErr['sRuleId'] + ":\n";
        sResult += "  " + oErr["sMessage"];
        if (oErr["aSuggestions"].length > 0) {
            sResult += "\n  > Suggestions : " + oErr["aSuggestions"].join(" | ");
        }
        if (oErr["URL"] !== "") {
            sResult += "\n  > URL: " + oErr["URL"];
        }
        return sResult;
    }
    catch (e) {
        helpers.logerror(e);
        return "\n# Error. Data: " + oErr.toString();
    }
}