mirror of
				https://github.com/TomWright/dasel.git
				synced 2022-05-22 02:32:45 +03:00 
			
		
		
		
	Write errors to stderr
This commit is contained in:
		| @@ -10,7 +10,7 @@ func main() { | ||||
| 	cmd := command.NewRootCMD() | ||||
| 	command.ChangeDefaultCommand(cmd, "select", "-v", "--version", "help") | ||||
| 	if err := cmd.Execute(); err != nil { | ||||
| 		fmt.Println("Error: " + err.Error()) | ||||
| 		_, _ = fmt.Fprintln(os.Stderr, "Error: "+err.Error()) | ||||
| 		os.Exit(1) | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tom Wright
					Tom Wright