Info "No circuit loaded!" is added.

This commit is contained in:
Holger Vogt 2021-01-20 11:48:55 +01:00
parent bcaebcf392
commit fc129447cd
1 changed files with 6 additions and 0 deletions

View File

@ -7260,6 +7260,7 @@ static int inp_vdmos_model(struct card *deck)
" drain, gate, source, tjunction, tcase\n"
" in VDMOS instance line with thermal model\n"
" %s\n", card->line);
fprintf(stderr, "No circuit loaded!\n");
return 1;
}
/* next token is the model name of instance */
@ -7279,6 +7280,7 @@ static int inp_vdmos_model(struct card *deck)
" drain, gate, source, tjunction, tcase\n"
" in VDMOS instance line with thermal model\n"
" %s\n", card->line);
fprintf(stderr, "No circuit loaded!\n");
tfree(instmodname);
return 1;
}
@ -9488,6 +9490,7 @@ static int inp_poly_2g6_compat(struct card* deck) {
curr_line = nexttok(curr_line);
if (!curr_line) {
fprintf(stderr, "Error: not enough parameters in line\n %s\n", thisline);
fprintf(stderr, "No circuit loaded!\n");
return 1;
}
/* The next token may be a simple text token or an expression
@ -9500,6 +9503,7 @@ static int inp_poly_2g6_compat(struct card* deck) {
curr_line = nexttok(curr_line);
if (!curr_line) {
fprintf(stderr, "Error: not enough parameters in line\n %s\n", thisline);
fprintf(stderr, "No circuit loaded!\n");
return 1;
}
if (*curr_line == '\0')
@ -9510,6 +9514,7 @@ static int inp_poly_2g6_compat(struct card* deck) {
curr_line = nexttok(curr_line);
if (!curr_line) {
fprintf(stderr, "Error: not enough parameters in line\n %s\n", thisline);
fprintf(stderr, "No circuit loaded!\n");
return 1;
}
/* The next token may be a simple text token or an expression
@ -9522,6 +9527,7 @@ static int inp_poly_2g6_compat(struct card* deck) {
curr_line = nexttok(curr_line);
if (!curr_line) {
fprintf(stderr, "Error: not enough parameters in line\n %s\n", thisline);
fprintf(stderr, "No circuit loaded!\n");
return 1;
}
if (*curr_line == '\0')