comparison src/debugger.c @ 26865:bce848ec8b1b v8.2.3961

patch 8.2.3961: error messages are spread out Commit: https://github.com/vim/vim/commit/436b5adc9770a2568209dd5ab1f98bd1afc91898 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 31 22:49:24 2021 +0000 patch 8.2.3961: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 00:00:04 +0100
parents 806f31579357
children 146817021fc3
comparison
equal deleted inserted replaced
26864:eb95ad159bce 26865:bce848ec8b1b
592 #endif 592 #endif
593 STRNCMP(p, "expr", 4) == 0) 593 STRNCMP(p, "expr", 4) == 0)
594 bp->dbg_type = DBG_EXPR; 594 bp->dbg_type = DBG_EXPR;
595 else 595 else
596 { 596 {
597 semsg(_(e_invarg2), p); 597 semsg(_(e_invalid_argument_str), p);
598 return FAIL; 598 return FAIL;
599 } 599 }
600 p = skipwhite(p + 4); 600 p = skipwhite(p + 4);
601 601
602 // Find optional line number. 602 // Find optional line number.
617 // Find the function or file name. Don't accept a function name with (). 617 // Find the function or file name. Don't accept a function name with ().
618 if ((!here && *p == NUL) 618 if ((!here && *p == NUL)
619 || (here && *p != NUL) 619 || (here && *p != NUL)
620 || (bp->dbg_type == DBG_FUNC && strstr((char *)p, "()") != NULL)) 620 || (bp->dbg_type == DBG_FUNC && strstr((char *)p, "()") != NULL))
621 { 621 {
622 semsg(_(e_invarg2), arg); 622 semsg(_(e_invalid_argument_str), arg);
623 return FAIL; 623 return FAIL;
624 } 624 }
625 625
626 if (bp->dbg_type == DBG_FUNC) 626 if (bp->dbg_type == DBG_FUNC)
627 bp->dbg_name = vim_strsave(STRNCMP(p, "g:", 2) == 0 ? p + 2 : p); 627 bp->dbg_name = vim_strsave(STRNCMP(p, "g:", 2) == 0 ? p + 2 : p);