mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-06 11:59:40 +02:00
Add error messages when controlled_exit is called:
No exit without message.
This commit is contained in:
@@ -110,6 +110,7 @@ char *tvprintf(const char *fmt, va_list args)
|
||||
* memory was exhausted) with the old behavior */
|
||||
|
||||
if (nchars < 0) {
|
||||
fprintf(stderr, "Error: tvprintf failed\n");
|
||||
controlled_exit(-1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user