Fixed a unnamed param bug in error.c
Slightly improved errors
Ternary -> if for readability in error.c