MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / ply_storage_finish_err

Function ply_storage_finish_err

js/storage.js:21–34  ·  view source on GitHub ↗
(op_id, error)

Source from the content-addressed store, hash-verified

19}
20
21function ply_storage_finish_err(op_id, error) {
22 var message = "Storage operation failed";
23 if (error !== undefined && error !== null) {
24 if (error.message !== undefined && error.message !== null) {
25 message = String(error.message);
26 } else {
27 message = String(error);
28 }
29 }
30 ply_storage_pending[op_id] = {
31 status: 0,
32 error: message
33 };
34}
35
36function ply_storage_split_path(path) {
37 var parts = path.split('/').filter(function (part) {

Callers 5

ply_storage_newFunction · 0.85
ply_storage_save_bytesFunction · 0.85
ply_storage_load_bytesFunction · 0.85
ply_storage_removeFunction · 0.85
ply_storage_exportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected