Skip to content

Commit

Permalink
Print error message if no connection
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed Feb 13, 2021
1 parent c6ea740 commit 073e8cb
Show file tree
Hide file tree
Showing 28 changed files with 7 additions and 162 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.vscode
__debug_bin
/uniclip
.idea
.idea
/dist
5 changes: 0 additions & 5 deletions dist/CHANGELOG.md

This file was deleted.

11 changes: 0 additions & 11 deletions dist/checksums.txt

This file was deleted.

117 changes: 0 additions & 117 deletions dist/config.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions dist/uniclip.rb

This file was deleted.

Binary file removed dist/uniclip_2.0.1_Darwin_x86_64.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_Linux_32-bit.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_Linux_arm64.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_Linux_armv6.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_Linux_x86_64.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_Windows_32-bit.zip
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_Windows_x86_64.zip
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_freebsd_32-bit.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_freebsd_arm64.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_freebsd_armv6.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_2.0.1_freebsd_x86_64.tar.gz
Binary file not shown.
Binary file removed dist/uniclip_darwin_amd64/uniclip
Binary file not shown.
Binary file removed dist/uniclip_freebsd_386/uniclip
Binary file not shown.
Binary file removed dist/uniclip_freebsd_amd64/uniclip
Binary file not shown.
Binary file removed dist/uniclip_freebsd_arm64/uniclip
Binary file not shown.
Binary file removed dist/uniclip_freebsd_arm_6/uniclip
Binary file not shown.
Binary file removed dist/uniclip_linux_386/uniclip
Binary file not shown.
Binary file removed dist/uniclip_linux_amd64/uniclip
Binary file not shown.
Binary file removed dist/uniclip_linux_arm64/uniclip
Binary file not shown.
Binary file removed dist/uniclip_linux_arm_6/uniclip
Binary file not shown.
Binary file removed dist/uniclip_windows_386/uniclip.exe
Binary file not shown.
Binary file removed dist/uniclip_windows_amd64/uniclip.exe
Binary file not shown.
5 changes: 5 additions & 0 deletions uniclip.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func handleClient(c net.Conn) {

func connectToServer(address string) {
c, err := net.Dial("tcp4", address)
if c == nil {
handleError(err)
fmt.Println("Could not connect to", address)
return
}
if err != nil {
handleError(err)
return
Expand Down

0 comments on commit 073e8cb

Please sign in to comment.