Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 39293933
authored
Aug 23, 2015
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show error when failed to get current user
1 parent
45f65bfc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
app/app.go
app/app.go
View file @
3929393
...
@@ -53,7 +53,10 @@ func New(options Options) (*App, error) {
...
@@ -53,7 +53,10 @@ func New(options Options) (*App, error) {
prefString
:=
[]
byte
{}
prefString
:=
[]
byte
{}
prefPath
:=
options
.
ProfileFile
prefPath
:=
options
.
ProfileFile
if
options
.
ProfileFile
==
DefaultProfileFilePath
{
if
options
.
ProfileFile
==
DefaultProfileFilePath
{
usr
,
_
:=
user
.
Current
()
usr
,
err
:=
user
.
Current
()
if
err
!=
nil
{
return
nil
,
err
}
prefPath
=
usr
.
HomeDir
+
"/.gotty"
prefPath
=
usr
.
HomeDir
+
"/.gotty"
}
}
if
_
,
err
=
os
.
Stat
(
prefPath
);
os
.
IsNotExist
(
err
)
{
if
_
,
err
=
os
.
Stat
(
prefPath
);
os
.
IsNotExist
(
err
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment