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

This commit is contained in:
JC Brand 2020-04-20 18:49:02 +02:00
parent c1efb0d2b4
commit d9c41f62cf
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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 {