Skip to content

Commit 2f09255

Browse files
committed
Add some console.log debugging
1 parent 4b24fa2 commit 2f09255

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

.eslintrc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ plugins:
2626
- promise
2727
- react
2828
rules:
29-
complexity: ["warn", 10]
29+
complexity: ["warn", 15]
3030
no-console:
31-
- error
31+
- warn
3232
- allow:
3333
- warn
3434
- error

build/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"simple-xpath-position": "^2.0.2"
1414
},
1515
"scripts": {
16-
"start": "HOST=vbanos-dev.us.archive.org PORT=8093 react-scripts start",
16+
"start": "HOST=vbanos.gr PORT=5000 react-scripts start",
1717
"build": "rollup -c config/rollup.mjs",
1818
"build:dev": "rollup -c config/rollup.mjs -w",
1919
"test": "jest --testEnvironment=jsdom --testPathIgnorePatterns=src/components/__tests__/setup.js",

src/components/diff-container.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default class DiffContainer extends React.Component {
4545
};
4646

4747
errorHandled = (errorCode) => {
48+
console.log('Error handled:', errorCode);
4849
this.setState({ error: errorCode });
4950
};
5051

src/components/errors.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ErrorMessage = ({ code, url, timestamp, conf, errorHandledCallback }) => {
2525
break;
2626
case '422':
2727
// https://github.com/edgi-govdata-archiving/web-monitoring-diff/blob/be748a7f0bbdd4251f680e22d3e433d1be93f858/web_monitoring_diff/server/server.py#L568
28-
msg = `The captures of ${url} cannot be compared. Note that we support only HTML capture comparison.`;
28+
msg = `The captures of ${url} cannot be compared because we support only HTML comparison.`;
2929
simhash = false;
3030
break;
3131
case 'CAPTURE_NOT_FOUND':

0 commit comments

Comments
 (0)