Commit d9c41f62 authored by JC Brand's avatar JC Brand

Add `install` recipe as alias to `build` and `dist`

parent c1efb0d2
......@@ -174,7 +174,6 @@ logo/conversejs-filled%.png:: logo/conversejs-filled.svg
src/headless/dist/converse-headless.min.js: src webpack.common.js node_modules @converse/headless
npm run headless
.PHONY: dist
dist:: build
......@@ -182,6 +181,9 @@ dist:: build
build:: node_modules
npm run dev && npm run build && make dist/website.css && make dist/website.min.css
.PHONY: install
install:: build
.PHONY: cdn
cdn:: node_modules
npm run cdn
......
......@@ -886,8 +886,9 @@ export const api = _converse.api = {
promise = new Promise((resolve, reject) => _converse.connection.sendIQ(stanza, resolve, reject, timeout));
promise.catch(e => {
if (e === null) {
const el = isElement(stanza) ? stanza : stanza.nodeTree;
throw new TimeoutError(`Timeout error after ${timeout}ms for the following IQ stanza: ${el}`);
throw new TimeoutError(
`Timeout error after ${timeout}ms for the following IQ stanza: ${Strophe.serialize(stanza)}`
);
}
});
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment