return outFilePath; } catch (e) { if (e.error) { // This isn't a real error, rather this is a message coming from the // server. So let's throw a real error instead. throw new Error( `The server's actor threw an error: (${e.error}) ${e.message}` ); } // Otherwise, rethrow the error throw e; } } } exports.MemoryFront = MemoryFront; registerFront(MemoryFront); PK