Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hamza
jio
Commits
f73bb71f
Commit
f73bb71f
authored
Jun 28, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[replicate] increase error verbosity
parent
71e8158b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/jio.storage/replicatestorage.js
src/jio.storage/replicatestorage.js
+2
-1
test/jio.storage/replicatestorage_repair.tests.js
test/jio.storage/replicatestorage_repair.tests.js
+2
-2
No files found.
src/jio.storage/replicatestorage.js
View file @
f73bb71f
...
@@ -1295,7 +1295,8 @@
...
@@ -1295,7 +1295,8 @@
});
});
}
}
report
.
log
(
id
,
options
.
from_local
?
LOG_UNEXPECTED_REMOTE_ATTACHMENT
:
report
.
log
(
id
,
options
.
from_local
?
LOG_UNEXPECTED_REMOTE_ATTACHMENT
:
LOG_UNEXPECTED_LOCAL_ATTACHMENT
);
LOG_UNEXPECTED_LOCAL_ATTACHMENT
,
JSON
.
stringify
(
attachment_dict
));
},
function
(
error
)
{
},
function
(
error
)
{
if
((
error
instanceof
jIO
.
util
.
jIOError
)
&&
if
((
error
instanceof
jIO
.
util
.
jIOError
)
&&
(
error
.
status_code
===
404
))
{
(
error
.
status_code
===
404
))
{
...
...
test/jio.storage/replicatestorage_repair.tests.js
View file @
f73bb71f
...
@@ -2015,7 +2015,7 @@
...
@@ -2015,7 +2015,7 @@
})
})
.
fail
(
function
(
report
)
{
.
fail
(
function
(
report
)
{
deepEqual
(
report
.
_list
,
[
deepEqual
(
report
.
_list
,
[
[
report
.
LOG_UNEXPECTED_REMOTE_ATTACHMENT
,
id
]
[
report
.
LOG_UNEXPECTED_REMOTE_ATTACHMENT
,
id
,
'
{"foo":{}}
'
]
]);
]);
})
})
.
then
(
function
()
{
.
then
(
function
()
{
...
@@ -2199,7 +2199,7 @@
...
@@ -2199,7 +2199,7 @@
})
})
.
fail
(
function
(
report
)
{
.
fail
(
function
(
report
)
{
deepEqual
(
report
.
_list
,
[
deepEqual
(
report
.
_list
,
[
[
report
.
LOG_UNEXPECTED_LOCAL_ATTACHMENT
,
id
]
[
report
.
LOG_UNEXPECTED_LOCAL_ATTACHMENT
,
id
,
'
{"foo":{}}
'
]
]);
]);
})
})
.
then
(
function
()
{
.
then
(
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment