-
Notifications
You must be signed in to change notification settings - Fork 95
Misleading error message "... is not a Buffer" and strange path #32
base: master
Are you sure you want to change the base?
Conversation
…when something goes wrong. fixed path problems when file was not accessable on destination (path.join)
// destination could be a directory | ||
// it eventually can't be accessible | ||
// to prevent getting a destination like: | ||
// /pubic/app.js/app.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"public" ? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of course i ment public :-D 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@christianor I think @Narigo has found a typo. It is public
, not pubic
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i fixed the typo
A better error message than |
synced with master branch of original repo
This needs to be merged into master. Files with a chmod of 655 can be inaccessible through this module yet the SSH2 module actually returns Error("Permission denied") as the |
I had the problem that on my destination i had a file that was called like a folder on the source directory. So scp failed to access (open) the handle on the destination.
I got a misleading error, it unfortunately took me a few hours to find the cause of this error:
write /home/pi/work/public/scripts/app.js/app.js // if error then path.join causes this strange path
transfer 1/1 data
Fatal error: handle is not a Buffer