Can i forbid printing "Line number" in error path? #2058
-
I used to get error path by ly_errpath in libyang1 to generate netconf error reply, And now I switch to libyang2, and the error path has the extra info "Line number", But I don't want it. So how could i forbid them? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Sorry but you will have to extract the path from the message, it is not possible to modify its format. It is not designed too well but we would have to increase the SO version to make any changes to it and there is no plan to do that in the near future. |
Beta Was this translation helpful? Give feedback.
-
OK. So I create an enhancement issue from this discussion to follow it? I think the extra string operation of "extract" will decrease the performance |
Beta Was this translation helpful? Give feedback.
Sorry but you will have to extract the path from the message, it is not possible to modify its format. It is not designed too well but we would have to increase the SO version to make any changes to it and there is no plan to do that in the near future.