Skip to content

Commit 94196eb

Browse files
committed
electron-main: Use camle-case for the send_error method.
1 parent 71023ae commit 94196eb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎electron_app/src/electron-main.js‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ autoUpdater.on('update-downloaded', (ev, releaseNotes, releaseName, releaseDate,
155155
ipcMain.on('ipcCall', async function(ev, payload) {
156156
if (!mainWindow) return;
157157

158-
const send_error = (id, e) => {
158+
const sendError = (id, e) => {
159159
const error = {
160160
message: e.message
161161
}
@@ -226,7 +226,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
226226
eventIndex = new seshat(p);
227227
console.log("Initialized event store");
228228
} catch (e) {
229-
send_error(payload.id, e);
229+
sendError(payload.id, e);
230230
return;
231231
}
232232
}
@@ -245,7 +245,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
245245
try {
246246
eventIndex.addEvent(args[0], args[1]);
247247
} catch (e) {
248-
send_error(payload.id, e);
248+
sendError(payload.id, e);
249249
return;
250250
}
251251
break;
@@ -254,7 +254,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
254254
try {
255255
ret = await eventIndex.commit();
256256
} catch (e) {
257-
send_error(payload.id, e);
257+
sendError(payload.id, e);
258258
return;
259259
}
260260
break;
@@ -263,7 +263,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
263263
try {
264264
ret = await eventIndex.search(args[0]);
265265
} catch (e) {
266-
send_error(payload.id, e);
266+
sendError(payload.id, e);
267267
return;
268268
}
269269
break;
@@ -275,7 +275,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
275275
ret = await eventIndex.addHistoricEvents(
276276
args[0], args[1], args[2]);
277277
} catch (e) {
278-
send_error(payload.id, e);
278+
sendError(payload.id, e);
279279
return;
280280
}
281281
}
@@ -287,7 +287,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
287287
try {
288288
ret = await eventIndex.removeCrawlerCheckpoint(args[0]);
289289
} catch (e) {
290-
send_error(payload.id, e);
290+
sendError(payload.id, e);
291291
return;
292292
}
293293
}
@@ -299,7 +299,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
299299
try {
300300
ret = await eventIndex.addCrawlerCheckpoint(args[0]);
301301
} catch (e) {
302-
send_error(payload.id, e);
302+
sendError(payload.id, e);
303303
return;
304304
}
305305
}

0 commit comments

Comments
 (0)