Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
808cf9df
Commit
808cf9df
authored
Oct 09, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fail with error when running diagnostic in offline mode
parent
5c14df0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
core/commands/diag.go
core/commands/diag.go
+4
-0
No files found.
core/commands/diag.go
View file @
808cf9df
...
...
@@ -2,6 +2,7 @@ package commands
import
(
"encoding/json"
"errors"
"io"
"time"
...
...
@@ -9,6 +10,9 @@ import (
)
func
Diag
(
n
*
core
.
IpfsNode
,
args
[]
string
,
opts
map
[
string
]
interface
{},
out
io
.
Writer
)
error
{
if
n
.
Diagnostics
==
nil
{
return
errors
.
New
(
"Cannot run diagnostic in offline mode!"
)
}
info
,
err
:=
n
.
Diagnostics
.
GetDiagnostic
(
time
.
Second
*
20
)
if
err
!=
nil
{
return
err
...
...
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