Browse Source

Updated the documentation

main
Cédric Belin 1 week ago
parent
commit
8a87bafae1
3 changed files with 8 additions and 8 deletions
  1. +4
    -4
      doc/usage.md
  2. +2
    -2
      example/index.html
  3. +2
    -2
      example/main.js

+ 4
- 4
doc/usage.md View File

@@ -29,7 +29,7 @@ The `Report.fromCoverage()` static method parses a [LCOV](http://ltp.sourceforge
}

catch (e: LcovException) {
Sys.println('An error occurred: ${e.message}');
Sys.println('An error occurred: "${e.message}" at offset ${e.offset}.');
}
}
}
@@ -49,8 +49,8 @@ The `Report.fromCoverage()` static method parses a [LCOV](http://ltp.sourceforge
console.log(JSON.stringify(report, null, "\t"));
}

catch (err) {
console.log(`An error occurred: ${err.message}`);
catch (error) {
console.log(`An error occurred: ${error.message} at offset ${error.offset}.`);
}
}

@@ -70,7 +70,7 @@ The `Report.fromCoverage()` static method parses a [LCOV](http://ltp.sourceforge
}

catch (LcovException $e) {
print "An error occurred: {$e->getMessage()}";
print "An error occurred: '{$e->getMessage()}' at offset {$e->offset}.";
}
}



+ 2
- 2
example/index.html View File

@@ -49,8 +49,8 @@ end_of_record`;
console.log(JSON.stringify(report, null, "\t"));
}

catch (err) {
console.log(`An error occurred: "${err.message}" at offset ${err.offset}.`);
catch (error) {
console.log(`An error occurred: "${error.message}" at offset ${error.offset}.`);
}
</script>
</body>


+ 2
- 2
example/main.js View File

@@ -26,7 +26,7 @@ async function parseReport() {
console.log(JSON.stringify(report, null, "\t"));
}

catch (err) {
console.log(`An error occurred: "${err.message}" at offset ${err.offset}.`);
catch (error) {
console.log(`An error occurred: "${error.message}" at offset ${error.offset}.`);
}
}

Loading…
Cancel
Save