swayfx/sway
S. Christoffer Eliesen af30a1b67c ipc,commands,config: Replace cmd_status enum with cmd_results struct.
In i3 the ipc reply will contain a human readable error message, and
this patch replicates that behaviour.

However, that error message is also useful for logging, which this
patch takes advantage of.

E.g. instead of logging errors directly in commands.c/checkargs, it is
fed back to the caller which eventually ends up logging everything with
maximum context available (config.c/read_config).

So instead of logging e.g. "Error on line 'exit'" it will now log:
"Error on line 'exit': Can't execute from config."
2015-10-22 23:36:24 +02:00
..
commands.c ipc,commands,config: Replace cmd_status enum with cmd_results struct. 2015-10-22 23:36:24 +02:00
config.c ipc,commands,config: Replace cmd_status enum with cmd_results struct. 2015-10-22 23:36:24 +02:00
container.c config: Apply output config also during config reload. 2015-10-21 23:24:06 +02:00
focus.c update visibility + container info functions 2015-08-27 23:18:28 -07:00
handlers.c ipc,commands,config: Replace cmd_status enum with cmd_results struct. 2015-10-22 23:36:24 +02:00
input_state.c move function redone 2015-08-28 11:03:10 -07:00
ipc.c ipc,commands,config: Replace cmd_status enum with cmd_results struct. 2015-10-22 23:36:24 +02:00
layout.c Merge branch 'master' of https://github.com/taiyu-len/sway 2015-09-22 09:41:32 -07:00
list.c set variable changes 2015-09-08 08:54:57 -07:00
log.c merge + no c_extensions 2015-09-18 07:23:04 -07:00
main.c main: Implement --get-socketpath switch. 2015-10-18 19:53:56 +02:00
readline.c Fix potential memory leak 2015-08-20 02:30:22 +02:00
resize.c return after disconnect ipc client and minor checks 2015-09-29 07:19:10 -07:00
stringop.c merge + no c_extensions 2015-09-18 07:23:04 -07:00
util.c added missing util.h/c stuff 2015-08-25 19:53:59 +02:00
workspace.c Fix warnings introduced by prior commit 2015-09-18 07:27:35 -04:00